...

/

Exercise 2: Finding the Type of Triangle

Exercise 2: Finding the Type of Triangle

In this exercise, you will implement class-based inheritance using the two constructor functions Shape and Triangle.

We'll cover the following...

Problem Statement

In this exercise, two constructor functions, Shape and Triangle are declared. You need to implement class-based inheritance such that the class Triangle inherits prototype properties from the Shape class.

You have to implement the following tasks:

Task 1

  • Pass the parameters name and sides ...