I can not understand what does not like the browser in the 12th and most likely the 14th line.
<html> <head> <title>Таблица</title> </head> <body> <script type = "text/javascript"> var x = 10; var y = 10; function DrawTable(){ var result; result = "<table>"; for (var i = 0, i < x, i++){ result += "<tr>"; for (var j = 0, j < x, j++){ result += "<td>" + i * j + "</td>"; } result += "</tr>"; } result += "</table>"; var table = document.getElementById("table"); table.innerHTML = result; console.log(result); } </script> <button onclick = DrawTable()>Таблица</button> <div id = "table"> </div> <h1>Заголовок</h1> <table border = "1" cellpadding = "10"> <tr> <td> 1 </td> <td> <h2>2</h2> </td> </tr> <tr> <td>3</td> <td>4</td> </tr> </table> </body>