What does get mean in this ES6 class? How do I reference this function? How should I use it?
get
class Polygon { constructor(height, width) {
It is getter, same as Objects and Classes in OO JavaScript. From the MDN Docs for get:
The get syntax binds an object property to a function that will be called when that property is looked up.