Ref: Multiplication Table
function multiplicationTable(){
const L = [1,2,3,4,5,6,7,8,9,10];
const X = [1,2,3,4,5,6,7,8,9,10];
let row = " ";
for(let j = 0; j< L.length;j++)
{
row += ""+L[j]+" ";
}
let text = ""+row+" ";
for(let i=0;i";
for(let j=0;j"+" "+(L[j]) * (X[i])+" "+"";
}
text += ""+row+" ";
}
tablo.innerHTML = text;