Complete the code to print numbers from 1 to 3 using a loop.
for(let i = 1; i [1] 4; i++) { console.log(i); }
The loop should run while i is less than 4 to print numbers 1, 2, and 3.
Complete the code to sum numbers from 1 to 5 using a loop.
let sum = 0; for(let num = 1; num [1] 6; num++) { sum += num; } console.log(sum);
The loop should run while num is less than or equal to 5 to include numbers 1 through 5.
Fix the error in the loop condition to print 'Hello' 3 times.
for(let count = 0; count [1] 3; count++) { console.log('Hello'); }
The loop should run while count is less than 3 to print 'Hello' three times.
Fill both blanks to create a loop that prints even numbers from 2 to 10.
for(let i = [1]; i [2] 11; i += 2) { console.log(i); }
Start from 2 and loop while i is less than 11 to print even numbers up to 10.
Fill all three blanks to create a loop that prints numbers from 5 down to 1.
for(let num = [1]; num [2] 0; num [3]) { console.log(num); }
Start from 5, loop while num is greater than 0, and decrease num by 1 each time.
