JavaScript course


#1


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


I am stuck in the course and this is the error I still get;

ReferenceError: myObj is not defined


var me = new myObj();
me.name = "Janessa";
me.age = 17;


#2

me is a new Object, not sure why you use myObj


#3

That was in the example


#4

no? then the name of the object was myObj where in your case its me, but in both case you create a new Object()


#5

Then it only displays the age


#6

that is console behavior, displaying the last updated variable to console, if you want to log more information to the console you will have to use console.log(), which you learned in one of the first few lessons


#8

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