From the course: Objects in JavaScript: A Dynamic Data Structure

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Challenge: Objects and properties quiz

Challenge: Objects and properties quiz

You have made it to the challenge for this chapter. It is rather short and shouldn't take more than five minutes. When you approach the challenge, remember what a variable is and how to declare an object with properties. Also, reflect back on how to add properties to an object. For your challenge, I would like for you to declare an object using a constant variable that is assigned to the value of an object. The object has key value pairs of name, age, and hairstyle. Then, add a property to the object. You can add any property that you would like. This should take less than five minutes.

Contents