Joschka Posted October 1, 2017 Share Posted October 1, 2017 https://www.w3schools.com/js/js_break.asp below heading: JavaScript Labels "The continue statement (with or without a label reference) can only be used to skip one loop iteration." - this description is not correct "The continue statement (with or without a label reference) can only be used to skip all or the remainder of one loop iteration." - this description is more accurate Link to comment Share on other sites More sharing options...
dsonesuk Posted October 1, 2017 Share Posted October 1, 2017 Then why does it skip the loop targeted, and continue with the rest in this example https://www.w3schools.com/js/tryit.asp?filename=tryjs_continue Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now