6. Intro


Create an object called bob that has no information inside the brackets.

var bob = {};

what's wrong with this


You need to define a new object. That looks like this:

var name = new Object();


Objects can be initialized using new Object(), or using the literal notation { }. So, you code is correct (you defined an empty object), but in this lesson, as @825orion said , you need to use new Object().


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