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?”
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.
Amazing tutorial. Thanks you!
very clear explanation sir.
Finally I could understand prototypes. the graphics you provided helped a lot. Plus you are a great teacher. not every person has this gift!
Very helpful!!!! Thanks so much :DDD!!!
Finally I could understand prototypes. the graphics you provided helped a lot. Plus you are a great teacher. not every person has this gift!
really helpful,..finally i could understand this…thank u
superb!
Amazing video bro, thanks!
Very helpful tutorial
I think it would be good here if you talked about the difference between the private linkage to the object [[Prototype]] and the public linkage _proto_ (which browsers support but isn't recommended!)
im lost, it would of helped if you showed code >.>
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?
awesome video!!!!! I was struggling to understand the concept of prototype. This video helped me a lot. Thank you so much!
Wow thanks. Awesome tutorial
very nice , very clear