Last active
          December 14, 2015 06:18 
        
      - 
      
- 
        Save jackofseattle/5041115 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
    
  
  
    
  | What is the output of this function? Why? | |
| for(var i = 0; i < 5; i++) { | |
| setTimeout(function() { | |
| console.log('The value of i is ', i); | |
| }, 500); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment