Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created September 7, 2016 02:03
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/e50da15dc350f248dc13abba5b85382a to your computer and use it in GitHub Desktop.
Save codecademydev/e50da15dc350f248dc13abba5b85382a to your computer and use it in GitHub Desktop.
Codecademy export
var nyc = {
fullName: "New York City",
mayor: "Bill de Blasio",
population: 8000000,
boroughs: 5
};
// write a for-in loop to print the value of nyc's properties
for(var x in nyc) {
console.log(nyc[x]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment