Basic JavaScript Question:

Download Job Interview Questions and Answers PDF

What does break and continue statements do in JavaScript?

JavaScript Interview Question
JavaScript Interview Question

Answer:

Continue statement continues the current loop (if label not specified) in a new iteration whereas break statement exits the current loop in JavaScript.

Download JavaScript Interview Questions And Answers PDF

Previous QuestionNext Question
What is eval() in JavaScript?How to create a function using function constructor?