6. Intro


#1

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

var bob = {};

what's wrong with this


#2

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

var name = new Object();


#3

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().


#4

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