Basic JavaScript Question: Download JavaScript PDF

What does break and continue statements do in JavaScript?

Tweet Share WhatsApp

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 PDF Read All 114 JavaScript Questions
Previous QuestionNext Question
What is eval() in JavaScript?How to create a function using function constructor?