JavaScript Question: What is a Prototype?




In this JavaScript question we cover prototypes. We define them and then look at examples to help illustrate the concept.

For a complete list of all our tutorials:
http://www.allthingsjavascript.com/youtube.html

Take the Learn Modern JavaScript: Getting Started or the Learn Modern JavaScript: Advanced Topics courses at a huge discount:
https://www.udemy.com/learn-modern-javascript-getting-started/?couponCode=YOUTUBE
https://www.udemy.com/learn-modern-javascript-advanced-topics/?couponCode=YOUTUBE

Original source


16 responses to “JavaScript Question: What is a Prototype?”

  1. I have just discovered your channel, and the Javascript tutorials are great. I feel like I have stagnated with the Js Tutorials on you tube. Only so many loops and if/else tuts you can watch. Its great that you're moving on to concepts that branch out from the beginner, beginner tuts that you tube is flooded with. 👍

  2. Thanks for tutorial . its good and i have cleared few doubts for prototype concept. I am having one doubt :
    var obj = { company : "hi"}, what is the difference between
    obj.__proto__.text= 10; and obj.text = 10 ? both are adding adding prototype, why two different ways ? is there any specfic reason for this declaration?

Leave a Reply