Practice makes perfect (object)


help please, this is the error
Oops, try again. There was a problem with your syntax.

//first object
var object1 = new Object(); = "this is a object";
//second object
var object2 = {
    name = "new",
    number = 2
//third object
    var object3 = new Object();
    object3.text = "this is object number 3";


You have syntax errors on object object2 literal, you should assign values to property names using colon : not equal sign.


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