Created
September 1, 2019 03:49
-
-
Save heinthanth/773ce2961dd757513e9f9587fbfcb295 to your computer and use it in GitHub Desktop.
For-In
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
var x = [4, 5, 6, 7, 8]; | |
for(var i in x) { | |
console.log(i); | |
// will log 4, 5, 6, 7, 8 in each time since i = x[i] in each time | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment