Created
          May 10, 2020 20:28 
        
      - 
      
 - 
        
Save Nathan-Nesbitt/0c16b61715f0cd1223b8c5f9945a2776 to your computer and use it in GitHub Desktop.  
    For In Loop
  
        
  
    
      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
    
  
  
    
  | // Create an object car with some attributes // | |
| var car = { | |
| brand:"Honda", | |
| year:2018, | |
| kms:2500 | |
| }; | |
| // Loops through the attributes in the object | |
| for (var attribute in car) { | |
| console.log(attribute + ": " + car[attribute]); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Sample code for https://nathan.nesbitt.ca/blog-posts/IntroductionToJavascript.html