S
Steve
I was advised by someone in the Google Maps API group to use this
method of assigning values to a variable:
var test = {
colour:"red",
sound:"music",
smell:"perfume"
};
alert(test.sound);
This works really well but I cannot find any information regarding how
this works.
Could someone enlighten me regarding this method of assigning values
to a variable, ie what is the meaning of the ":" and why is no comma
required after the last line etc.
Cheers
method of assigning values to a variable:
var test = {
colour:"red",
sound:"music",
smell:"perfume"
};
alert(test.sound);
This works really well but I cannot find any information regarding how
this works.
Could someone enlighten me regarding this method of assigning values
to a variable, ie what is the meaning of the ":" and why is no comma
required after the last line etc.
Cheers