Dans un tableau / In a table


#1

Voilà mon code / Here is my code

var amis = new Object();
amis.bill = {
prenom: 'Bill',
nom: 'Sanders',
numero: '0918273645',
adresse: ["One Microsoft Way","Redmond","WA","98052"]
};
amis.steve = {
prenom: 'Steve',
nom: 'Hawking',
numero: '908173654'
adresse: ["One Microsoft Way","Redmond","WA","98052"]
};

Il semble bon mais un message d'erreur apparaît. Pouvez-vous m'aider ? / It seems to be good but an error message appear. Can you help me please ?


#2

@ajaxace75987,

Vous aurez à utiliser un des virgules,
pour séparer la "propriété"
numero: '908173654'
de
la propriété"
adresse: ["One Microsoft Way", "Redmond", "WA", "98052"]


#3

J'ai rajouté les virgules, mais rien ne change, que puis-je faire d'autres ?


#4

@ajaxace75987,

var amis = new Object();
amis.bill = {
     prenom: 'Bill',
     nom: 'Sanders',
     numero: '0918273645',
     adresse: ["One Microsoft Way","Redmond","WA","98052"]
     };
amis.steve = {
     prenom: 'Steve',
     nom: 'Hawking',
     numero: '908173654',
     adresse: ["One Microsoft Way","Redmond","WA","98052"]
     };
console.log( amis );

++++++++++++++++++++++++++++++++

++++ 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