Back to Browse

7 Benefits of First-Class Functions - JavaScript Tutorial

14.7K views
Premiered May 12, 2024
25:04

The JavaScript Tool I'm using to demonstrate: https://runjs.app/ColorCode ColorCode Etsy Merchandise store: https://www.etsy.com/shop/ColorCodeStore Functions in JavaScript are First-Class. But what does that mean? In this video I explain what the term means, why it matters, and 7 benefits of functions due to their First-Class nature, including examples. Enjoy! This is episode 17 of 20 things Javascript Developers Should Know But Probably Don't. 00:00:00 Intro 00:01:22 What are First-Class Functions? 00:02:12 #1 Assign them to variables 00:05:04 #2 Pass them in as argument 00:08:41 #3 Return them from other functions 00:13:05 #4 Currying 00:18:01 #5 Closures 00:18:55 #6 Store them in data structures 00:21:35 #7 Anonymous Functions 00:22:50 Summary 00:24:00 Outro ColorCode Etsy Merchandise store: https://www.etsy.com/shop/ColorCodeStore Full playlist here: https://www.youtube.com/playlist?list=PL1PqvM2UQiMoGNTaxFMSK2cih633lpFKP JavaScript Promises from the series "20 Things JS Developers Should Know but Probably Don't" by ColorCode.io, Sina Jazayeri *** Announcement *** Full JavaScript Mastery course is coming! Sign up for Early Access here: https://www.colorcode.io/js-mastery

Download

1 formats

Video Formats

360pmp455.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

7 Benefits of First-Class Functions - JavaScript Tutorial | NatokHD