Course · Section 14: Object-Oriented Programming (OOP) With JavaScript · Lecture 222: Prototypes
Using a constructor function `Box(side)` with a `volume()` method on its prototype, implement `boxVolume(side)` returning the cube of the side.
+ 1 hidden test run on Submit.
A prototype method is shared across instances and reads instance data through this.
Run your code to see results.