Tossing an array Error :did you give all your friends an adress?


#1

heres the code when I run it it says did you give all your friends an adress?
code:
var friends={
bill:{
firstName:'Bill',

    lastName:'Gates',

    number:423-553-4544,

    adress:['Orange Microsoft Company','Around the corner','jolly good day']

    },
steve:{
    firstName:'Steve',

    lastName:'Jobs',

    number:532-544-5453,

    adress:['Apple company','BlueWay','Can']

},


Jas:{

firstName:'Jaskaran',

lastname:'Singh',

number:533-433-4634,

adress:['Behind my building','CanCurry']
},


Nate:{
    firstName:'Barthomolew',

    lastName:'Cocker',

    number:514-514-6380,

    adress:['Idk where men ','Around kfc'] },


Luke:{
    firstName:'Luke',

    lastName:'Mannix',

    number:433-454-3522,

    adress:['Right to my building','Aliwa']}

};


#2

@cwannabe,

1

Have a close look at

lastname:'Singh',

2

The number-Value should be a string like '533-433-4634'

3

You define address-Value as an Array
but you must be aware that you use a mixed number of elements.
['Behind my building','CanCurry']
:['Orange Microsoft Company','Around the corner','jolly good day']

4

Change your =adress=-key in address

5

If you have made the changes as stated above,
you could try a Browser =reset=

++++ reset of session *****************
As you are manipulating with objects
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#3

Tanks man your a life saver