Prototypal Inheritance in js - new VS. object.create VS. es6 inheritance

preview_player
Показать описание
This video explains
all the stuff involved in achieving prototypal inheritance. like getting the parent properties, assigning the orginal constructor back and what is the best way to assign the prototype chain.

Recommended videos
1. Classes not added in ES6 --- ES6 class structure

Comment your views, suggestions, improvements or doubts.

Codepen -

✪ Help me get 1k subscribers
Рекомендации по теме
Комментарии
Автор

Finally Understood. Side-by-side comparison really helps!

VeenaBalasubramanya
Автор

hi. i like your video. you are explaining it good! so, what is the difference between __proto__ and .prototype?

ijash-yt
Автор

why do you assign ```Student.prototype = instead of ```Student.prototype = Object.create(person)```. thank you for your attention

ijash-yt