let multiplyTable = [];
for (let i = 1; i <= 10; i++) {
multiplyTable[i] = [];
for (let j = 1; j <= 10; j++) {
multiplyTable[i][j] = j * i;
}
}
const htmlTable = (arr) => {
let result = "
";
for(let i = 1; i < arr.length; i++) {
result += "";
for(let j = 1; j < arr[i].length; j++){
result += `${arr[i][j]} | `;
}
result += "
";
}
result += "
";
return result;
}
document.querySelector('body').insertAdjacentHTML('beforeend', htmlTable(multiplyTable));