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 - JavaScript Tutorial
From the course: Objects in JavaScript: A Dynamic Data Structure
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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.