The Flavors of Object-Oriented Programming (in JavaScript)
Zell Liew π€
Posted on November 11, 2020
I wrote an article on CSS Tricks where I explained 4 different ways to write Object-Oriented Programming in JavaScript. If you're confused about OOP, this article should help sort things out for you nicely.
The four ways are:
- Constructor functions
- Classes
- OLOO
- Factory functions
In this article, you'll learn :
- How to write Object Oriented Programming with each of the four methods.
- Get to know methods are the "best", and why
- Get to know how to write event listeners with OOP (which is never taught elsewhere).
I'm excited to share this one with you. Click here to read the article!
I hope you enjoy this. Let me know if you do!
Thanks for reading. Sign up for my newsletter if you want more articles to help you become a better frontend developer.
π πͺ π
π©
Zell Liew π€
Posted on November 11, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.