A trivial example of defining classes in Javascript (ECMAScript 2015).
Clone the repository navigate to the directory with the code and run a web server in it. For example:
php -S localhost:4567
Open the URL in the browser and open the developer console. You should see an output similar to this:
shape - 0
circle - 0
rect
square
0
12.566370614
2
4