hands-on lab
Working With JavaScript Object Constructor
Difficulty: Advanced
Duration: Up to 45 minutes
Students: 120
Rating: 4.2/5
On average, students complete this lab in14m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Description
In this lab, you will be working with JavaScript Object Constructors. A constructor is a function that creates an instance of an object. They can be thought of as object blueprints for when you want to have multiple objects with the same properties among each one.
Covered topics
Lab steps
Introduction to JavaScript Labs
Creating the Constructor Function
Initializing Properties in the Constructor
Creating a Constructor Prototype
Creating a New Pet Instance
Executing the Prototype