Prototype basics - Object Creation in JavaScript P3 - FunFunFunction #46

visibility 3 vues schedule il y a 9 ans timer 19:19
open_in_new Dailymotion
We’ll go through the absolute basics of the prototype in this video. I’m going to explain why you should learn prototypes, and how they work. <br /> <br />Complete series playlist: \"Object creation in JavaScript\" <br />You’re probably used to doing inheritance with classes. JavaScript achieves inheritance using prototypes. The real-world analogy used when teaching classes is a blueprint - you have a blueprint of a building, and you use that blueprint to build buildings. The real-world analogy to a prototype is a delegate, a person that has been elected into office that will act on your behalf. <br />This video is for you if you are coming from another programming language into JavaScript and you’re already somewhat familiar with object oriented programming. You know what classes and inheritance is, but you’re confused about how object orientation is done in JavaScript. <br />I\'m also active on:.