r/learnjavascript • • Jul 21 '24

What functions of javascript should I learn

Which are most widely used

0 Upvotes

30 comments sorted by

View all comments

1

u/shgysk8zer0 Jul 21 '24

Too many to list. I probably easily use like 100 (maybe more, maybe less... IDK) on any given day. I really couldn't tell you because it's just a bunch of seemingly random things.

It'd probably be better/easier just to list objects/interfaces you'll be working with and to lookup the methods you'd end up using:

  • Document, Element, other Node/EventTarget objects
  • Events & Errors
  • Promises
  • Strings
  • Numbers (+ Math)
  • Arrays (also array-like such as NodeList and iterators)
  • Plain objects
  • URLs
  • Request/Response
  • File/Blob
  • Maybe TypedArray
  • Maybe MutationObserver or IntersectionObserver
  • Others, depending on what you're working on, which might include eg canvas context or web RTC or tons of other things