function generateTable() { // <table> 要素と <tbody> 要素を作成 const tbl = document.createElement("table"); const tblBody = document.createElement("tbody"); // すべてのセルを作成 for (let i = 0; i < 2; i++) { // 表の行を作成 const row = document.createElement("tr"); for (let j = 0; j < 2; j++) { // <td> 要素とテキストノードを作成し、テキストノードを // <td> の内容として、その <td> を表の行の末尾に追加 const cell = document.createElement("td"); const cellText =

