Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to use continue is js

for (var i = 0; i < 10; i++) {
if (i == 5) { continue; }       // skips the rest of the cycle
document.write(i + ", ");       // skips 5
}
Source by htmlcheatsheet.com #
 
PREVIOUS NEXT
Tagged: #continue #js
ADD COMMENT
Topic
Name
8+4 =