Комментарии:
Drink a shot of whisky every time you hear proto, and a shot of vodka every time you hear prototype.
ОтветитьVery helpful! 🔥
Ответитьthan you very much
ОтветитьCan someone help me please understand something ?
I understud inheritance,classes/constructors.
But whith I have problem is prototype and the functions. I understud that prototype is some kind of methodology what we can create and append, ok and we create the method outside function of User object. And same for not always repeat the method in our object User. But What I not understand is the function and class/constructor difference. Its like that we can not use prototype for class User ,for that reason we use function User ( .., .. ){ } ? We can use only prototype method for function object ? And if I'm right can someone please help me and show me some example where We can use class User and we have inside made greeting() method, and after outside we will want create prototype on class User like User, prototype.logout ... If its even possible?
Thank your guys (ninjas )
when should i use prototype instead of a class?
ОтветитьDude you're too fast
ОтветитьI watched like 6 other videos and read a bunch of articles and still didn't understood why prototypes existed. This was the first video that made sense to me. Thank you!
ОтветитьIs the prototype method static and that is why it is written like that?
ОтветитьThank you
ОтветитьAmazing. Ive been struggling to understand the significance of prototypes, you explained it very clearly!!
Ответитьwow amazing video thank you lots of help compared to the other videos out there
ОтветитьExcellent! ty so much Ninja
ОтветитьI hope you know you mean a lot to us❤
Thank you for everything...
Brilliant!
Ответитьbro whats your theme?
ОтветитьMaybe a dump question, but things may have changed over time.
How do you export the proto functions in a modul type?
I tried almost everything
Prototype 'propty'
ОтветитьI just love the way you explain .... so easy to understand!
ОтветитьI know this was a while ago, but I was wondering if this was accurate. Basically we're storing methods inside of the proto because if we have a bunch of objects we don't want to have the same method on all of them. This would take up a lot of memory. This is why we store the methods inside the proto property, using the prototype.
Ответитьsitll so confused about the countless ways to just make a frickin object. here you just havea function... no constrcutor keyword. then what about constructor functions? all so confusing
Ответить