Inheritance using Object.create() in JavaScript
Вставка
- Опубліковано 5 вер 2024
- In this lecture, you will learn how to implement inheritance between objects using Object.create method. The Object.create() method
- Creates an empty object based on a prototype object.
- That empty object inherits from the prototype object.
Thanks for this valuable series
amazing lecture. thank you
Excellent series - Your style of teaching is so crystal clear. Thank you !
Great work 👍 keep uploading. Very informative
great lecture so far, can you please share the github repository link for this course
Top class lectures !! thanks you
Nice explanation! Thank you🤓
Great series for OOP in Js!
Nice explanation! Thank you
Thank you as usual great tutorial
great!!!!
Thanks. Why is it that employee is not before the curly braces in the console.log when you output and instance of it
Object.create method does not create an instance of existing object. Instead it creates a new object from an existing object. That's why you don't see Employee before the object.
An instance can be created using constructor function or class. In that case, you will the object name in the output for which the instance is created.
thank you.
if start working on something please complete it.🤐