Last active
October 30, 2017 17:29
-
-
Save Omar-Gonzalez/22bd4be96a291388a2d406417756eb36 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
function forTest(val){ | |
console.log("Val test in forTest() "+val); | |
} | |
for(var i = 0; i < 10; i++){ | |
(function(i){ | |
setTimeout(function(){ | |
forTest(i) | |
},i*100) | |
})(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment