12 'Object is not defined' error


#1


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


My code keeps producing this error message : ReferenceError: object is not defined

I've rewritten my code several times, and I keep getting the same message. Can anyone point out where I've gone wrong? Thanks


var object1 = new Object();
   object1.month = "April";
   object2.date = "11th";

var object2 = new Object();
object2.weather = "rainy";
object2.temp = "60 degrees";


var object3 = new Object();
object3.doing = "working on a new project";
object3.feel = "fighting through a cold";

console.log("The date is " + object1.month + " " + object1.date + ", and the weather is " + object2.weather + " and " + object.temp + " right now I am " + object3.doing + " and " + object3.feel + "!");


#2

Supposed to be object1.date.

Supposed to be object2.temp.


#3

Yes - that fixed it! Thanks for the trouble shooting!


#4

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