Introduction objects I 20


#1

how can i constructors dog

`


#2

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 = {
     key.name: "Your input here"
};

#3

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