Zach Cochran
by Zach Cochran
~1 min read



I finally used Javascript classes today for the first time. While porting over one of my tools to nodejs, I had the opportunity to implement a class with a constructor to better manage object data. Turns out using Javascript classes is super simple, there’s really not much to them (granted I didn’t do anything fancy with subclasses and such).

class Turtle {
 constructor (color) {
   this.color = color;