File:The different types of JavaScript functions explained.webm

Summary

Description
English: Learn more JS from Chris and get the source code from this video 👉 https://gomakethings.com/kevin-powell

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?

  1. css

--

Come hang out with other dev's in my Discord Community 💬 https://discord.gg/nTYCvrK

Keep up to date with everything I'm up to ✉ https://www.kevinpowell.co/newsletter

Come hang out with me live every Monday on Twitch! 📺 https://www.twitch.tv/kevinpowellcss

---

Help support my channel 👨‍🎓 Get a course: https://www.kevinpowell.co/courses 👕 Buy a shirt: https://teespring dot com/stores/making-the-internet-awesome 💖 Support me on Patreon: https://www.patreon.com/kevinpowell

---

My editor: VS Code - https://code.visualstudio.com/

---

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.

Twitter: https://twitter.com/KevinJPowell Codepen: https://codepen.io/kevinpowell/ Github: https://github.com/kevin-powell

---

And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
Date
Source YouTube: The different types of JavaScript functions explained – View/save archived versions on archive.org and archive.todayCategory:Media from YouTube
Author Kevin Powell

Licensing

This video, screenshot or audio excerpt was originally uploaded on YouTube under a CC BY license.
Their website states: "YouTube allows users to mark their videos with a Creative Commons CC BY license."
To the uploader: You must provide a link (URL) to the original file and the authorship information if available.
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
Attribution: Kevin Powell
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
Category:CC-BY-3.0#The%20different%20types%20of%20JavaScript%20functions%20explained.webm
Category:Media from YouTube#The%20different%20types%20of%20JavaScript%20functions%20explained.webm
This file, which was originally posted to an external website, has not yet been reviewed by an administrator or reviewer to confirm that the above license is valid. See Category:License review needed for further instructions.
Category:License review needed (video)#153329598 Category:Uploaded with video2commons Category:Videos of computer programming Category:JavaScript Category:Explanatory videos Category:Videos in English
Category:CC-BY-3.0 Category:Explanatory videos Category:JavaScript Category:License review needed (video) Category:Media from YouTube Category:Uploaded with video2commons Category:Videos in English Category:Videos of computer programming