Practice makes perfect 12 TypeError: Object is not a constructor


#1

var Object1 = {
    name : "Ibrahima",
    love : "my mum"
};

var Object2 = {
    profession :"student",
    hobbie : "basketball"
};

var Object3 = new Object();
Object3["code"] = "beginner";

#2

Please provide link to the lesson.


#3

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


#4

From the instruction:

Create three objects called object1, object2, and object3 in the editor.

So, you need to rename Object1 -> object1 and other objects too.


#5

@denys.matsevych can you be more explicit


#6

You need to create three objects: object1, object2, and object3.
But you have Object1, Object2, and Object3.

I mean that should be like this:

var object1 = {
    name : "Ibrahima",
    love : "my mum"
};

So rename other two objects, please.


#7

thanks you i jsut change the upper case on Object


#8

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