MCQ
How many times will the loop for (let i = 5; i > 0; i--) execute?
Unit-3 Programming Fundamentals
A 4
B 5
C 6
D 3
Explanation

The loop runs for i = 5, 4, 3, 2, 1, so its body executes 5 times.