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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

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

Wrong

Result: