PDA

View Full Version : Arrays of some sort?


CrAzY_J
10-03-2005, 01:58 AM
um..Here's a stupid question, I've seen some people use this:
var var_name = { key1:'value1',key2:'value2' }
Now I sort of know how it works by studying codes, but I don't know the name of this ..uh object.
Anyone want to share it? :P

gph
10-03-2005, 02:40 AM
object literal (http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:Literals#Object_Literals)

gph
10-03-2005, 02:43 AM
but I don't know the name of this ..uh object.

Close :D

CrAzY_J
10-03-2005, 02:44 AM
object literal (http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:Literals#Object_Literals)
cheers :thumbsup: