Traditional Object Oriented Programming in JavaScript (Part 1)
This tutorial was written for CS559 2020 by the course staff, and updated for 2021 and 2022.
Originally, JavaScript had some non-standard ways to do object-oriented programming. They were very cool, and very flexible - but they were non-standard and hard to learn
Fortunately, newer versions of JavaScript (like we use in class) give us another option that provides a convenient syntax for “traditional” (class/instance style) object oriented programming. JavaScript ES6 introduced classes to JavaScript, which use notation similar to what you may have seen in other object oriented languages.
Read more…