JavaScript: prototype

Self-tutoring about JavaScript: the tutor begins about its prototype concept.

Whether JavaScript has always been truly object-oriented I will discuss over a few posts. Suffice it to say it’s changed a lot over the years to become more similar, syntactically, to other object-oriented languages.

JavaScript’s prototype idea is a way to add a property or a method to all objects of a certain kind – even objects that have already been created. Therefore, it’s a slick utility, very appealing to a pragmatic programmer because of its flexibility.

I will follow up with examples and other commentary on JavaScript OOP.

Source:

w3schools.com

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply