Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created September 14, 2016 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/0d6b1ce079378d1524671b69fc7b377e to your computer and use it in GitHub Desktop.
Save codecademydev/0d6b1ce079378d1524671b69fc7b377e to your computer and use it in GitHub Desktop.
Codecademy export
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