r/javascript • • May 28 '19

What are some JavaScript things beginners don't know?

333 Upvotes

383 comments sorted by

View all comments

1

u/vscde_gtr_thn_jtbrns May 28 '19 edited May 28 '19

I see very few people know how to use the prototype keyword

Edit: Please ignore the autistic douche below here trying to fight over whether or not prototype is a keyword instead of the point of people not knowing how to use it.

11

u/[deleted] May 28 '19

yeah including you because first of all, that's not a keyword. Also trying to understand this bullshit isn't going to get you ANYWHERE in JS.

Source: I've written everything you can imagine in the past +10 years in JS and never needed that horsecrap.

1

u/Gravyness May 28 '19

Were just defining functions on the function itself instead of its prototype for 10 years? That's like avoiding using Promises because you can do things with callbacks.