//display table using javascript
const displayTable = (num) => {
list = [];
for (let i = 1; i <= 10; i++) {
list.push(i*num);
}
console.log(list.join(" "));
}
displayTable(5); //5 10 15 20 25 30 35 40 45 50
//display table using javascript
const displayTable = (num) => {
list = [];
for (let i = 1; i <= 10; i++) {
list.push(i*num);
}
console.log(list.join(" "));
}
displayTable(5); //5 10 15 20 25 30 35 40 45 50