r/javascript • • May 28 '19

What are some JavaScript things beginners don't know?

333 Upvotes

383 comments sorted by

View all comments

5

u/zayelion May 28 '19
  • You can do most things without a **** framework.

  • Objects do not have Array prototypes on them. People coming from PHP I've noticed have this issue.

  • Cohesion in general. People coming from strictly typed languages having a tendency to want to mutate types of things. Then blame the language. You cant do that in other languages and the code work, I dont understand why they think they can do it now.

  • JS has debuggers.

  • Callbacks, promises, and await/async, and when it is the best use cases to use each.

  • That arrow functions and function keyword are not interchangeable, they have different interactions with `this`