Object Oriented JavaScript Tutorial #10 - Prototype

Object Oriented JavaScript Tutorial #10 - Prototype

Net Ninja

6 лет назад

193,159 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Tom No0k
Tom No0k - 18.10.2023 22:46

Drink a shot of whisky every time you hear proto, and a shot of vodka every time you hear prototype.

Ответить
noy
noy - 12.10.2023 11:22

Very helpful! 🔥

Ответить
Muhammadumar Sotvoldiev
Muhammadumar Sotvoldiev - 10.10.2023 12:45

than you very much

Ответить
tomas matusek
tomas matusek - 15.09.2023 11:38

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 )

Ответить
A.I Office - פתרונות אקסל ואוטומציה לעסקים
A.I Office - פתרונות אקסל ואוטומציה לעסקים - 05.09.2023 11:03

when should i use prototype instead of a class?

Ответить
AFOKE REALITY IGHO
AFOKE REALITY IGHO - 31.08.2023 20:12

Dude you're too fast

Ответить
Evan
Evan - 13.06.2023 00:53

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!

Ответить
DK
DK - 12.01.2023 23:52

Is the prototype method static and that is why it is written like that?

Ответить
Allassane Dicko
Allassane Dicko - 28.11.2022 18:00

Thank you

Ответить
Brandon McHugh
Brandon McHugh - 04.11.2022 16:03

Amazing. Ive been struggling to understand the significance of prototypes, you explained it very clearly!!

Ответить
Anton
Anton - 04.11.2022 09:09

wow amazing video thank you lots of help compared to the other videos out there

Ответить
Raquel Betancourt
Raquel Betancourt - 12.10.2022 16:42

Excellent! ty so much Ninja

Ответить
Selva Ganesh M
Selva Ganesh M - 04.10.2022 20:46

I hope you know you mean a lot to us❤

Thank you for everything...

Ответить
Trick Treat
Trick Treat - 25.09.2022 04:15

Brilliant!

Ответить
Amir Kargar
Amir Kargar - 05.09.2022 12:04

bro whats your theme?

Ответить
Christian Möller-Hansen
Christian Möller-Hansen - 25.08.2022 21:34

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

Ответить
Crypto Wolf
Crypto Wolf - 23.07.2022 06:14

Prototype 'propty'

Ответить
SimpleProgramming
SimpleProgramming - 14.07.2022 14:32

I just love the way you explain .... so easy to understand!

Ответить
Andrew Dalton
Andrew Dalton - 15.06.2022 22:41

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.

Ответить
Bobby Bundlez
Bobby Bundlez - 20.05.2022 06:12

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

Ответить