The Modern JavaScript Bootcamp (2019) - Creating Subclasses

The Modern JavaScript Bootcamp (2019) - Creating Subclasses

Assessment

Interactive Video

Information Technology (IT), Architecture, Business

University

Hard

Created by

Wayground Content

FREE Resource

The video tutorial explains prototypal inheritance in JavaScript, demonstrating how to create subclasses using the 'extends' keyword. It covers creating an Employee subclass from a Person class, overriding methods, and adding unique methods. The tutorial concludes with an exercise to create a Student subclass, reinforcing the concepts of inheritance and method customization.

Read more

4 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the significance of the 'get bio' method in the context of the employee subclass?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

How do you implement a method that calculates years left until retirement for an employee?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What are the key differences between a person and a student subclass?

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Explain how to create a method that updates a student's grade and its implications.

Evaluate responses using AI:

OFF

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?