<script>
function table( options = { tr: 5,td:3})
{
document.write('<table border="1"
width= " 100%">' );
while ( options.tr-- ≠ 0)
{
let td = options.td;
document. write( '<tr>' ) ;
while(td--≠0)
{
document . write('<td>${td}</td> ');
}
document.write('</ td>');
}
document.write('</ table>');
}
table({tr: 20, td:10});
</script>
|