JavaScript Question: When Should I use the Prototype?

  Рет қаралды 4,869

All Things JavaScript, LLC

All Things JavaScript, LLC

Күн бұрын

Пікірлер: 13
@BlaBlaBlaInDaHouse
@BlaBlaBlaInDaHouse Жыл бұрын
Great video once again! Thank you for your time
@tajpouria
@tajpouria 5 жыл бұрын
Hi, how you become master in javascript various concepts sir?
@AllThingsJavaScript
@AllThingsJavaScript 5 жыл бұрын
These are the steps I would suggest. Take time to learn it. I feel a course or a book is important so you aren't just learning parts. Then work on projects. Challenge yourself. Finally, always continue learning. Never stop learning new things about JavaScript all through this process.
@2004helloWorld
@2004helloWorld 4 жыл бұрын
@@AllThingsJavaScript is there a book(s) you recommend?
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
@@2004helloWorld My favorite books can be seen at the bottom of my site: allthingsjavascript.com
@ashishdevade7209
@ashishdevade7209 3 жыл бұрын
👍👍👍
@ziat1988
@ziat1988 4 жыл бұрын
I don't see you explain why this reduce memory
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
Not sure I understand the question.
@wahoobeans
@wahoobeans 4 жыл бұрын
If you create many objects from a function constructor, each instance will designate memory for the attributes and methods. Instead of recreating the same method for every instance, all instances can find the method by looking at the prototype object. All instances share the same __proto__. Thus, this reduces the space for methods from n number of instances to 1.
@ProgrammingwithPeter
@ProgrammingwithPeter 5 жыл бұрын
Basically when you want to extend the "class" functionality
@Serjgap
@Serjgap 5 жыл бұрын
you should use a class instead
@AllThingsJavaScript
@AllThingsJavaScript 5 жыл бұрын
Later in the video I show an example of a class even though I'm not a fan of the class structure. It is simply syntactic sugar that masks the use of prototypes.
@bordertone_5138
@bordertone_5138 5 жыл бұрын
@@AllThingsJavaScript +1
JavaScript Question: What is a Factory Function?
14:20
All Things JavaScript, LLC
Рет қаралды 7 М.
JavaScript Classes and the Prototype
17:39
All Things JavaScript, LLC
Рет қаралды 5 М.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 79 МЛН
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 60 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
JavaScript Question: How do I Set the Prototype of an Object?
10:37
All Things JavaScript, LLC
Рет қаралды 14 М.
The Magic of the reduce Array Method
15:24
All Things JavaScript, LLC
Рет қаралды 22 М.
JavaScript Question: What is a Prototype?
10:48
All Things JavaScript, LLC
Рет қаралды 39 М.
Inheritance in JavaScript - Prototypal Inheritance tutorial
20:06
3 Powerful Design Patterns You Should Know
14:26
Amichai Mantinband
Рет қаралды 7 М.
What the Heck is Memoization? How Would I Use it?
22:03
All Things JavaScript, LLC
Рет қаралды 4,7 М.
JavaScript Tip: 7 Ways to Iterate Over an Array
15:11
All Things JavaScript, LLC
Рет қаралды 9 М.
Visually Understanding JavaScript Prototypes
14:58
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 55 М.
JavaScript Questions: What is Hoisting?
10:35
All Things JavaScript, LLC
Рет қаралды 11 М.
Creating and Using JavaScript Symbols
15:17
All Things JavaScript, LLC
Рет қаралды 6 М.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 79 МЛН