Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

In this video, we will look at Higher Order Functions in Javascript including forEach, filter, map, and reduce. A higher order function does at least ONE of the following:

1) takes one or more functions as an argument (parameter)
2) returns a function as its result.

Higher Order Functions in Javascript are very useful. Let's get started!

Subscribe https://bit.ly/3nGHmNn

▶ This video is part of the JavaScript Tutorials for Beginners Playlist found here: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6Oi6xNtL_fwCrwpuqylMsgT

Quick Concepts outline:
JavaScript Higher Order Functions
(0:00) Intro
(0:21) What is a Higher Order Function
(1:15) The data we are working with
(2:30) forEach() is better than a for loop!
(4:08) filter() helps select specific data from results
(5:58) map() lets you transform the data
(8:10) reduce() computes a single value from the data

Further Reading:
MDN Web Docs:
forEach: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach
filter: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
map: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map
reduce: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce
Eloquent JavaScript, Chapter 5: https://eloquentjavascript.net/05_higher_order.html

More Beginner JS Videos:
freeCodeCamp: https://youtu.be/PkZNo7MFNFg
Traversy Media: https://youtu.be/hdI2bqOjy3c
The Net Ninja: https://youtu.be/iWOYAxlnaww

Follow Me:
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/
Hashnode: https://yesdavidgray.hashnode.dev/
Reddit: https://www.reddit.com/user/DaveOnEleven

Was this tutorial about JavaScript higher order functions like forEach, filter, map, and reduce helpful? If so, please share. Let me know your thoughts in the comments.

#higher #order #functions