Exercise 2: Finding the Type of Triangle
Explore how to implement class-based inheritance in JavaScript by extending a Shape constructor to a Triangle constructor. Learn to initialize properties, inherit prototype methods, and create functions to determine triangle types like Equilateral, Isosceles, and Scalene.
We'll cover the following...
We'll cover the following...
Problem Statement
In this exercise, two constructor ...
Ask