Practice makes perfect (object)


#1

https://www.codecademy.com/courses/javascript-beginner-en-9Sgpi/2/4?curriculum_id=506324b3a7dffd00020bf661#

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

//first object
var object1 = new Object();
object1.name = "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";


#2

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


#3

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