Introduction objects I 20


how can i constructors dog



You can use the constructor like this:

var objectname = new Object(); //Makes an object called objectname
objectname.keyname = "Your input here" //adds a key with a value

declaring the above would be like doing the below.

var objectname = { "Your input here"


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.