...

/

Challenge: Prototype Pattern

Challenge: Prototype Pattern

In this challenge, you have to implement the prototype pattern to solve the given problem.

Problem statement

In this challenge, you have to implement a Ninja fighting game using the prototype pattern.

You have already been given the Ninja constructor function, which will be used to create a ninja object. A ninja should have the following properties:

  • name

  • points

The points are set to 100 by default upon the instantiation of a Ninja ...