JavaScript OOP academy.zariba.com
Lecture Content OOP in JavaScript (or the lack of it) Simple Class in JavaScript String Prototype Example Inheritance in JavaScript
OOP in JavaScript (or the lack of it) OOP means the application is constructed as a set of objects – each object has its own purpose JavaScript is a prototype-oriented language – uses prototypes(parents) to define hierarchies JavaScript uses functions to create objects There are many ways in which you can imitate OOP in JavaScript
Simple Class in JavaScript
String Prototype Example
Inheritance in JavaScript
Homework Optional – rewrite your RPG homework from the OOP course (if you dare).
References
Zariba Academy Questions