JSFiddle - React, Tailwind, and code Playground

by Justin Breen

JavaScript

var nyc = {
    fullName: "New York City",
    mayor: "Michael Bloomberg",
    population: 8000000,
    boroughs: 5
};

// write your for-in loop here
for (var key in nyc) {
    console.log(key, "=", nyc[key]);
}

console.log(nyc.population);