JavaScript Classes 🚀
👇🧵
👇🧵
Don't forget to bookmarked it for future reference...
Resources used : programiz.com
Resources used : programiz.com
Classes are one of the features introduced in the ES6 version of JavaScript.
A class is a blueprint for the object. You can create an object from the class.
A class is a blueprint for the object. You can create an object from the class.
• Here, person1 and person2 are objects of Person class.
• Note : The constructor() method inside a class gets called automatically each time an object is created.
• Note : The constructor() method inside a class gets called automatically each time an object is created.
• Note: To access the method of an object, you need to call the method using its name followed by ().
End thread 🧵
If you liked this thread:
-RT the first thread and share it with folks on Twitter.
-Follow @personalvipin for more such insightful threads.
Thanks for reading!
If you liked this thread:
-RT the first thread and share it with folks on Twitter.
-Follow @personalvipin for more such insightful threads.
Thanks for reading!
جاري تحميل الاقتراحات...