×
×
Correct!

Create an object called person with name = John, age = 50.
Then, access the object to alert("John is 50").

const person = { name: "John", age: 50 }; alert(person.name + " is " + person.age);

Not Correct

Click here to try again.

Correct!

const person  {
  name "John", age 50
};
alert( + " is " + );

  
  
  




×

Reset the Score?

This will reset the score of ALL 67 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 67 JS exercises.

Share your score:



Get Certified!

Take our JavaScript Developer Certificate to prove that you have fundamental knowledge of web development using JavaScript.