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.

-2

u/vscde_gtr_thn_jtbrns May 28 '19

Pretty useful if you understand stand OOP. Looks like u don’t

4

u/seiyria May 28 '19

Easier to just use class syntactic sugar.

5

u/vscde_gtr_thn_jtbrns May 28 '19

True if you don’t need old browser support or the trouble of setting up a transpiler. Still useful to understand.