document.write("<table>"); for(var row = 1; row < 10; row++) { document.write("<tr>"); for(var column = 1; column <= row; column++) { document.write("<td>" + column + "x" + row + "=" + column * row + "</td>"); } document.write("</tr>"); } document.write("</table>");
table td{ border: 1px solid skyblue; }