Having a problem with creating a new object


#1


I don't understand why it only logged 28, not including my name.
But I can pass the exercise.
So...can anyone helps me? I can't figure it out.


var me=new Object();

var me={};
me.name="Phoebe";
me.age=28;


#2

Sorry, so silly.
I didn't use console.log. That's why.


#3

A post was split to a new topic: Logging to console


#4

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