Modern JavaScript
About Lesson

In this JavaScript lesson we are going to talk about JavaScript Classes. so in ES6 the keyword class was introduced,  a class is a type of function, but instead of using the keyword function to initiate it, we use the keyword class.



In the past we can do like this.




Now let’s convert our example with ES6 classes.




Let’s add functions in our class.


Thank you for visiting my website! If you enjoyed the free courses, please consider supporting my works on Patreon.
Exercise Files
No Attachment Found
No Attachment Found