Комментарии:
First i like your video then watch it. :P
Ответитьin simple to give property of your own to another is called prototype
ОтветитьEven null is an object 😂
ОтветитьHello @everyone @akshay i just want to know is Prototype and _proto_ are same ?
Please Correct me if I am wrong please provide me clarity in this. as per my understanding
Prototype and _proto_ are different : Only Functions has prototype which provide us a free space or we can say and empty object. It is an object automatically created when a function is declared. The prototype is used to define properties or methods that should be inherited by instances created using that function as a constructor.
_proto_ : This _proto_ points to the prototype object of the constructor function that created the object.
could you please Explain below example ?
function showData(){
console.log('hello');
}
if(showData.prototype){
console.log(showData.prototype); // in this case it will print the prototype.
} else {
console.log('Prototype is not present );
}
but in case of array or object it will not print
everything in js is not object
ОтветитьThank You
Ответить😀 You are an awesome teacher Akshay
ОтветитьWow😮😮😮
Ответитьwhere to use this in realtime project.
will this act like global variable and consume more memory when i attach multiple functionprototype?
please assit
This is similar like making a class in c++ and when ever you create a object it create a constructure where you can also write functions or any code and its like similar when ever you make a object array and functions its create a object and it follows same constructure all of the funtion inside the construcute and each and every thing.
Ответитьit took too long for me to understand, your explanation is not straight forward, but it has the point
ОтветитьThank you so much for indepth explanation.
Ответить🙏
ОтветитьTq for replying akshay we are from the team Swami Vivekananda Indian Innovation Hub. Visit it when you visit hyd
ОтветитьSuper great video Akshay! But why Array._proto_ would be same as Function.prototype ?? 🤔
But Function._proto_ is also Function.prototype 🤯🤯
What if we need freeze the object1 propery like name, it will not change but other properties get change
ОтветитьNo wonder why Akshay is the best when it comes to JavaScript, I have just watched half of the video, and today my this query "€verything in JS is an object" is resolved. Today I got the real answer. Thank you, Akshay ❤ ☺️
Ответитьwow
Ответитьif using ._proto_ is not the correct way to inherit from another object, then what is the correct way ?
ОтветитьAkshay plz create video on RxJS.
ОтветитьWhy performance issues? Here what I found by doing a research.
1. By directly modifying the _proto_ we increase the time for prototype lookups, which means it again goes for another _proto_ chain
2. Also JS engines like v8 optimized to lookup for a stable prototype chain so by modifying the _proto_ chain we are de-optimizing it
you are saving in 2024 too
ОтветитьAppreciate if you include running notes and queries section in namastedev site
Ответитьu explained very well, thanks a lot!
Ответить❤
ОтветитьThanks , that was great video
ОтветитьHi bro ,
just now also I revised :) --- love you Boy
Would it be possible to have captions for those of us hard of hearing thankyou
ОтветитьDo you know you are mentioned in T.O.P. ?
ОтветитьI am a Namste React subscriber and have completed the complete JS tutorials and I did not find this video over there , in the interview, protypal inheritancewas asked and I could not answer is correctly, so please add this video in the Namste JS section please, so that other will not face this issue.
ОтветитьI found a much better and in depth explanation for this in an article on medium: Prototypal Object-Oriented Programming in Javascript by Prateek
ОтветитьInterviewer asked me same question I explained it beautifully and he was surprised on my explanation and I got selected in interview too
Thanks to Akshay brother for giving super content
Such complex concepts taught so beautifully with so much passion. Iam blessed to be your student watching and learning from your videos. No words to thank enough🙏🏼.
Ответитьthanks
ОтветитьEVERYTHING IN JAVASCRIPT IS AN OBJECT
and
EVERYTOPIC YOU EXPLAIN BECOMES CRYSTAL CLEAR
Thanks a ton for this detailed video 🙏
Explaination of prototype and prototypal inheritance topic is bit complex compare to your
other videos
so everthing in JS is an object
ОтветитьAkshay Explanation is like: So Beautiful, So Elegant Looking Like a Wow. Really great explanation Akshay, its that simple. You have best teaching skills... Super👌👌👌
Ответитьits not working for me
Ответить❤
ОтветитьObject in JS be like : Aham brahmasmi 😌
ОтветитьThank you so much! 🙂
It was very clear. I was thinking that everything in JS is an object before watching this, but I was still confused a bit and had doubts about that. But you just confirmed that😊
So basically, everything in JS is an object. And each object has its own constructor (function that created it) with a prototype (another object) attached to it. And that prototype has another prototype attached to it, which is Object.prototype. And Object.prototype is the "parent of all", meaning that there's no more "nested" prototypes.
So we could say that everything starts from the Object constructor (function) ?
🚀
simple and to the point, thank you :)
Ответитьsamjh nhi aya clearity nhi thi...
ОтветитьThank You Sir
ОтветитьDo you have a Stammering issue? I just feel it. Is it true?
ОтветитьLiked the video .......
Got a clear understanding of the topic
thanks❤❤