yehudakatz.com

uniqueid198x , to programming in Understanding JavaScript Function Invocation and "this"

Do people still use this for functions? I’ve been in typescript for years, its all arrow functions and very few classes in our codebase. There are almost no this at all. Is it still comnon in js?

bennyp ,
@bennyp@kbin.social avatar

this is very handy when you want to carry over some shared context. Justin Fagnani described this as an implicit first argument, which is a model that helped me understand how to use it better.

uniqueid198x ,

Cool. As mentioned, I have been in a different tech for a while now, and this article is from 2011, so I was interested if people do still use it

  • All
  • Subscribed
  • Moderated
  • Favorites
  • wartaberita
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • feritale
  • oklahoma
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • Testmaggi
  • SuperSentai
  • KamenRider
  • Socialism
  • All magazines