1. In a 'for' loop, what does the initialization statement typically do?

Wrong

2. How is a 'while' loop different from a 'do-while' loop?

Wrong

3. What is the result of the following code: 'for (let i = 0; i < 5; i++) { console.log(i); }'

Wrong

4. What is the purpose of the 'continue' statement in a loop?

Wrong

5. Which loop is suitable when the number of iterations is known beforehand?

Wrong

6. How do you create an infinite loop intentionally in JavaScript?

Wrong

7. In a 'for' loop, where should the loop variable be declared?

Wrong

8. What does the 'break' statement do in the context of loops?

Wrong

9. Which loop is best suited when you want the loop body to execute at least once?

Wrong

10. What is the primary purpose of using loops in JavaScript?

Wrong

Result: