JavaScript course


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

ReferenceError: myObj is not defined

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


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


That was in the example


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


Then it only displays the age


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


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