I created this JavaScript object that contains key/value pairs. The keys are the states and the values are arrays of the cities within each state.
I have included a link to my code on JSFiddle, but the basic structure of my object looks like this:
var location = {
"Key":[],
"Key":[],
}
Have I set up my object correctly?
There's something wrong with the key/value pair for 'MG.' I can't figure out what, though. When I look at the color-coded code, the second half of that line is black (starting at ', "Santa Maria do Suaçuí"' while the rest displays as expected.
I will greatly appreciate any feedback that can get my gears turning, again.
Thank you!