How do I console.log
a list of the keys of an object (e.g. "12342341
" in the code below)?
var data =
{
"12342341": {
"City": "Montgomery",
"State": "AL"
},
"23482342": {
"City": "New York",
"State": "NY"
}
}
console.log('City: ', data[12342341].City);