How to call / execute / invoke (whatever’s your favourite term) functions in JavaScript?
I present 7 build-in ways which differ either in Context, Attributes (Arguments), or Timing (I call this CAT).
***
Check out the list of gear I use to create YouTube videos: https://kit.com/robinpokorny
***
Music
Downtown Funk by Dj Quads
https://soundcloud.com/aka-dj-quads/downtown-funk
Original source
3 responses to “7 Function Invocation Patterns in JavaScript”
Was this useful for you? Have you learned something new? Or was there something you needed to check in the docs? Let me know!
There are so many things I forgot to mention… I hope I will keep getting better 😉
P. S. I just realised I'm saying ‘Attributes’ instead of ‘Arguments’ 🙄Sorry! I guess I was too happy that the initials form a word.
Nitpicking: When you gesture "backticks" with your hands, you need to do it the other way, so that it looks correct for the viewers.
Robin, please leave code samples displayed longer.