Last active
July 27, 2019 16:23
-
-
Save Subangkar/94568348bce551184bdc64af81b3d326 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for each loop | |
var a = ["a", "b", "c"]; | |
a.forEach(function(entry) { | |
console.log(entry); | |
return true; // works like break | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment