Untitled

MULTIPLICATION TABLE
mail@pastecode.io avatar
unknown
plain_text
2 years ago
217 B
1
Indexable
Never
var number = 1
//creating a multiplication table
for(let i = 1; i <= 10; i++) {
    // multiply i with number
    const result = i * number;
    // display the result
    console.log(`${number} * ${i} = ${result}`);
}