160
rated 0 times
[
164]
[
4]
/ answers: 1 / hits: 19969
/ 15 Years ago, fri, january 8, 2010, 12:00:00
I have an object like:
var myObject = { '0' : 'blue' };
Now, when I try to access the value of the key '0' like:
myObject.0
...I am getting an error. (Maybe this is not the proper way?)
How can I access the value of a key that is a number (like the above)?
More From » javascript