Creating Arrays and Objects in JavaScript


Okay, so there isn't a lesson I'm struggling on necessarily, but I do have a question.

var myOwnObject = new Object(); = 'Megan';
myOwnObject.age = 20;
myOwnObject.flower = "pansie";

So here is my code. My question is this. When I click okay, I've noticed that it is only the last key that is printed to the console (without a console.log). Am I doing something wrong? Or is this just how creating keys and objects works?

Thanks much for your help.

Replace this line with your code.


It is the Javascript interpreter which is running in this course-environment,
it display's the last non-displayed action...

You will also encounter this, when you are doing a return-statement
as last action...
You could counter this by using a
console.log( " " ); as last statement....

In some sections of this course, the course-checker Display's data
this you could then identify by placing two EXTRA code-line's:
console.log( "== My End ==" );
console.log( "== All that is displayed now, is the course-checker ==" );


Thank you, that really cleared things up for me!