Error in documentation


#1

In Contact List | 3. Adding your friends | Hint is the following:

Or with the bracket ([]) or dot(.) notation, like this:

friends[bill] = {};

That is a syntax error unless bill is already defined. Even if bill were defined, it would not be the same as:

friends.bill = {};

Please change to:

friends['bill'] = {};

Thanks.