filmov
tv
The different types of JavaScript functions explained
Показать описание
In JavaScript, we have several different ways to create a function, with function declarations, function expressions, and arrow functions. To help make sense of it all, Chris Ferdinani joined me to take a look at the different ways we can do it, and break down when you would use one type over another.
⌚ Timestamps
00:00 - Introduction
00:58 - Function declaration
01:33 - Function expression
02:05 - The difference between function declarations and expressions
06:00 - Organizing our code
07:59 - Arrow functions
09:35 - How the different types of functions handle "this"
13:10 - Creating more terse code with arrow functions
13:55 - Which one to use, and when?
#css
--
Come hang out with other dev's in my Discord Community
Keep up to date with everything I'm up to
Come hang out with me live every Monday on Twitch!
---
Help support my channel
---
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
Комментарии