Hi, how you become master in javascript various concepts sir?
@AllThingsJavaScript5 жыл бұрын
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.
@2004helloWorld4 жыл бұрын
@@AllThingsJavaScript is there a book(s) you recommend?
@AllThingsJavaScript4 жыл бұрын
@@2004helloWorld My favorite books can be seen at the bottom of my site: allthingsjavascript.com
@ashishdevade72093 жыл бұрын
👍👍👍
@ziat19884 жыл бұрын
I don't see you explain why this reduce memory
@AllThingsJavaScript4 жыл бұрын
Not sure I understand the question.
@wahoobeans4 жыл бұрын
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.
@ProgrammingwithPeter5 жыл бұрын
Basically when you want to extend the "class" functionality
@Serjgap5 жыл бұрын
you should use a class instead
@AllThingsJavaScript5 жыл бұрын
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.