I am not familiar with JavaScript and HTML. Just want to build a Table with JavaScript in HTML. I am following some instructions, part of code is as bellow. would you please let me know what is the problem that the table is not appearing?
tb1= document.createElement('table');
var tr = tb1.insertRow();
var Cell1 = tr.insertCell(0),
var Cell2 = tr.insertCell(1),
var Cell3 = tr.insertCell(2),
var Cell4 = tr.insertCell(3);
cell1.innerHTML = "11";
cell2.innerHTML = "11";
cell3.innerHTML = "11";
cell4.innerHTML = "11";
tb1.appendChild(MyTable);
<table id="MyTable" width="100%" ></table>