JSFiddle - React, Tailwind, and code Playground
JavaScript
document.write('<table border=1 cellpadding=0 cellspacing=0 bordercolor=black>');
document.write('<tr>');
for (let x = 0; x < 10; x++) {
document.write('<td border=1>');
document.write('<div style="border:1px solid black;border-left:none;width:30px;height:30px;font-weight:bold">');
if (x > 0) document.write(x);
document.write('</div>');
document.write('</td>');
}
document.write('</tr>');
for (let y = 1; y < 10; y++) {
document.write('<tr>');
for (let x = 0; x < 10; x++) {
document.write('<td border=1>');
if (x > 0) {
document.write('<div style="border:0;width:30px;height:30px;">');
document.write(x*y)
document.write('</div>');
} else {
document.write('<div style="border:1px solid black;border-left:none;width:30px;height:30px;font-weight:bold">');
document.write(y);
document.write('</div>');
}
document.write('</td>');
}
document.write('</tr>');
}
document.write('</div>');