JavaScript coding challenge

Extending classes

āœØ Your Task

Define a new class named Human that: šŸ‘‰ extends the existing Mammal class AND šŸ‘‰ overrides the subgroup method returning the value Primate.

āœļø JavaScript
šŸ‘‰ Press "Run" and check the result below.
Test cases
Class Human should be an instance of Mammal
The subgroup() method should return the value Primate

Want to try another challenge?