Javascript for Statement Question 1

Introduction

What is the output of the following code?


// A multiplication table
for (let myLoop = 0; myLoop <= 10; myLoop++) {
    console.log( myLoop + " = " + (10*myLoop));
}


0 = 0
1 = 10
2 = 20
3 = 30
4 = 40
5 = 50
6 = 60
7 = 70
8 = 80
9 = 90
10 = 100



PreviousNext

Related