JavaScript Classes

Last week, we looked at arrow functions.  This week, I figured that we would look at Classes.  Support for classes was another thing added to JavaScript with ES6.

See the Pen
JavaScript Classes
by Joe Steinbring (@steinbring)
on CodePen.

In the above example, there is a Person class and a Person2 class.  The difference between the two is that Person2 has a default value for the birthday and Person doesn’t.  Easy enough. 🙂

Have a question, comment, etc?  Feel free to drop a comment, below.


[ Cover Photo by Debby Hudson on Unsplash ]

Leave a Reply

Your email address will not be published.