Javascript Object Key Value Pairs
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 cod
Solution 1:
There is nothing wrong, just a limitation of the editor, try removing one string before and you will see the color will match the next string.
One alternative, would be to write one long string with a delimiter:
'string1|string2|string3'.split('|'); // ['string1', 'string2', 'string3']
Post a Comment for "Javascript Object Key Value Pairs"