Create 3 objects, can you help me to find out what's wrong?


#1

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

Oops, try again. Did you make object1 an object?

var object1 = new object();
object1.name = "food";
object1.amount = 10;

var object2 = new object();
object2.name = "drink";
object2.amount = 50;

var object3 = {
    name: "car",
    amount: 20
};

#2

Capitalization is important.

Tip - When you use keywords make sure they change color, If they don't it means you have misspelled or capitalized wrong.


#3

Thanks for your quick reply.


#4

Al good, did that solve it?


#5

I capitalized O.
Yes, it solved.
Thank you so much!!


#6

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