Times Table
JavaScript
10 pts
Times Table
Print the 6 times table from 1 to 5 with a for loop:
6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30
Use only one console.log(), inside the loop, and let JavaScript calculate each answer.
Checklist
- Write a
forloop from 1 to 5. - Print with a single
console.log()inside the loop. - The five lines appear in order.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
