Bug or code error?


#1

This will show the age but not the name, also it says that i need to add a name to my object.

var myObj = new Object();
myObj.name = "Somebody";
myObj.age = 39;


#2

if you want to log something to the console, use console.log()

by default, the last variable will be logged. So no, not really a bug.


#3

Yeah I know how to use console.log( ), but it still doesnt let me pass the challenge..


#4

which exercise is this? 11. creating a new object?

Recreate your me object in the editor, but this time, use the object constructor

you have no freedom in the object name, it should be me, not meObj


#5

Thank very much, i just mis understood the directions.:grimacing:


#6