Stuck in 12/6


#1

var object1 = {
object1.name: "nielo",
object1.age: 36;
};

var object2 = {
object2.name: "nielo",
object2.age: 36;
};

var object3 = new Object();

object3.road = "Nielo";
object3.number = 36;

whats wrong with me? ;(


#2

Writing a property name is sufficient and correct to crate a object. So

name: "nielo",
age: 36 //dont use ; semi-colon

it is enough.


#3

thanks Poin photon but it didn't work...

var object1 = {
object1.name: "nielo",
object1.age: 37
};

var object2 = {
object2.name: "nielo",
object2.age: 36
};

var object3 = new Object();

object3,name = "Nielo";
object3.number = 36;


#4

Hello, I'm Screenduck. Today I will try to solve your problem!

Try this code:

var object1 = new Object();
object1.name = "caciorrone";
object1["myAge"] = 20;

var object2 = new Object();
object2.country = "yourCountry";
object2["myCity"] = "yourCity";

var object3 = new Object();
object3.programmer = true;
object3["goodProgrammer"] = "yes";


#5

you're so kind! thank you!


#6

No problem, I'm happy to help!


#7

var object1 = {};

object1.name = 'zakaria';
object1.age = 29;

var object2 = new Object();
object2['name'] = 'zakaria';
object2['age'] = 29;

var object3 = {

name: 'zakaira',
age : 29

};


#8

Plese

Please, I think I have done everything right, :smile: but I still get error. Please helpe.
See screenshot.


#9

I fixed it...