javascript how to multiplication code example
Example 1: how to do multiplication in javascript
var a = 5
var b = 6
var c = a*b
var d = 5*6
Bot.send (c)/ print (c)
Bot.send (d)/ print (d)
Example 2: javascript multiplication table
let table = document.createElement("table");
for (i = 0; i < 10; i++) {
let tr = document.createElement("tr");
for (j = 0; j < 10; j++) {
let td = document.createElement('td');
td.innerHTML = (j + 1) * (i + 1);
tr.appendChild(td);
}
table.appendChild(tr);
}
target.appendChild(table);