Lesson 10: Prototypes in JavaScript

Sorry for the long delay between the last lesson and this one. Lots of travel and work got in the way of this post. Without further ado, here is the lesson on Prototypes.

Prototype is much misused keyword in JavaScript. Prototype word in JavaScript is used interchangeably for two subtly different concepts. This has lead to much confusion. In this lesson, I demystify what these two concepts are and explain the difference between “prototype” the keyword and the concept called “prototype”. Prototypes in JavaScript allow for creation of rich constructor functions and also add the inheritance functionality to JavaScript.

The code file for this lesson is present at:

90-prototypes.js

Join the Conversation

1 Comment

Leave a comment

Your email address will not be published. Required fields are marked *