OOP
Object Oriented Programming
OOP:
this
new keyword
Prototype
Classes
Inheritance
Object.Create()
Private vs Public
4 principles of OOP.
In the above example, name and fire allows to track the state of the object and fight and sing methods allows us to manipulate the state of the object.
There are two object oriented programming in JavaScript.
Prototypal Object Oriented Programming
Class Object Oriented Programming
Reference's:
Last updated