-
-
Save codecademydev/0d6b1ce079378d1524671b69fc7b377e to your computer and use it in GitHub Desktop.
Codecademy export
This file contains 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 friends = { | |
carlos: { | |
firstName: 'Carlos', | |
lastName: 'Valles', | |
number: 1, | |
address: ['123 Linden St', 'Long Beach', 'CA', '90813']}, | |
chase: { | |
firstName: 'Chase', | |
lastName: 'Mirassou', | |
number: 2, | |
address: ['123 Orange St', 'Long Beach', 'CA', '90815']}, | |
anthony: { | |
firstName: 'Anthony', | |
lastName: 'Spencer', | |
number: 3, | |
address: ['123 Imperial Hwy', 'Norwalk', 'CA', '90210']}, | |
bill: { | |
firstName: 'Bill', | |
lastName: 'Gates', | |
number: 4, | |
address: ['One Microsoft Way', 'Redmond', 'WA', '98052']}, | |
steve: { | |
firstName: 'Steve', | |
lastName: 'Jobs', | |
number: 5, | |
address: ['1 Infinite Way', 'Cupertino', 'CA', '95014']} | |
}; | |
var list = function (friends) { | |
for (var key in object){ | |
console.log(key) | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment