hands-on lab

Working With JavaScript Classes

Difficulty: Advanced
Duration: Up to 45 minutes
Students: 134
Rating: 3.5/5
On average, students complete this lab in25m
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 Classes. Classes were introduced with the inclusion of ES6 and are mostly syntactic sugar of constructor functions. A JavaScript class is a blueprint for creating objects.

Learning Objectives

Upon completion of this lab, you will be able to:

  • Create a class
  • Create a class constructor
  • Create a class method
  • Create a child class
  • Use super to access parent class properties and methods
  • Create a child class method

Intended Audience

  • Beginners learning front-end development
  • Software Engineers who need to learn front-end technologies to expand their skillset

Prerequisites

The following courses/courses and labs can ensure your success:

Covered topics

Hands-on Lab UUID

Lab steps

0 of 10 steps completed.Use arrow keys to navigate between steps. Press Enter to go to a step if available.
  1. Introduction to JavaScript Labs
  2. Creating an Animal Class
  3. Creating a Constructor
  4. Creating a Class Method
  5. Creating a Child Class
  6. Creating a Child Class Constructor
  7. Creating a Child Class Method
  8. Creating a Child Class Instance
  9. Invoking Parent Class Method on Child Class
  10. Invoking Child Class Method