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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

Result: