Functions as Parameters Explained, JavaScript Higher-Order Functions Codecademy Function as Argument

Channel:
Subscribers:
7,740
Published on ● Video Link: https://www.youtube.com/watch?v=284LyEryBQA



Duration: 6:24
417 views
7


In this JavaScript tutorial, we look at, "Functions as Parameters Explained, JavaScript Higher-Order Functions Codecademy Function as Argument". This is based on Codecademy's lesson, Functions as Parameters from their JS Higher-Order Functions section. We learn how to pass in a function as an argument of another function. This lesson teaches us that we can pass functions into other functions as parameters and this is called a higher-order function. A higher-order function is a function that will accept functions as parameters, return a function, or even both! A function that gets passed in as an argument and invoked is a callback function because they get called when we execute the higher-order function. When we pass in our function as an argument to our other function, we do not invoke it. We even learn that we are able to pass in an anonymous function into a function as well. We understand that one use case for a higher-order function can be something that checks if a function is outputting consistent data. Learning how to use higher-order functions, as well as use cases for higher-order functions is a crucial skill to have as a programmer. Learn higher-order functions by practicing with different data sets. Higher-order functions allow us to pass in functions to other functions as arguments and are a vital skill to learn in programming!




Other Videos By We Will Code


2022-03-17Review Iterators on Codecademy, Practice Iterators in JavaScript, Learn about How to Use Iterators
2022-03-17How to Choose the Right Iterator, Choosing right Iterators with JavaScript on Codecademy's Learn JS
2022-03-16Practice Reading JavaScript Documentation, Learning Iterators, some, every, and filter Methods JS
2022-03-16Best Relaxing Concentration Music Piano, Study Music, 2022 Motivational Instrumental Music for Work
2022-03-16Practice The reduce Method with JavaScript, Codecademy's Use The reduce Method in Reducing Array
2022-03-16The findIndex Method Explained with JavaScript, Codecademy's Practice findIndex Method, Iterators JS
2022-03-15Iterators Explained, The filter method with JavaScript, Codecademy's Use the filter Method on Arrays
2022-03-14How to Use the map Method in JavaScript, Return a New Array with map Method on Codecademy, Iterators
2022-03-14Practice the forEach Method with JavaScript, forEach Explained on Codecademy, Use the forEach Method
2022-03-14Higher-Order Functions JavaScript Review on Codecademy, Tips when Practicing Higher-Order Functions
2022-03-13Functions as Parameters Explained, JavaScript Higher-Order Functions Codecademy Function as Argument
2022-03-12Higher-Order Functions, JavaScript Functions as Data, Codecademy Assign and Reassign Function Data
2022-03-11An Intro to Higher-Order Functions, Codecademy's Learn JavaScript, What are Higher-Order Functions
2022-03-11Codecademy's Learn JavaScript, Loops Section Review Loops, Important Loop Summary, Learn JS 2022 ES6
2022-03-10The break Keyword Explained with JavaScript on Codecademy's Learn JavaScript, break Keyword Practice
2022-03-10Do While Loops Explained with JavaScript, Practice Do While Statements with Codecademy's Learn JS
2022-03-08The While Loop Explained with JavaScript, What is A While Loop in JavaScript, Codecademy's JS Course
2022-03-08Use a Nested Loop to Find Mutual Followers, Nested Loops Explained, Accessing Nested Arrays with JS
2022-03-07Looping Through Arrays Explained, How to Loop through an Array with JavaScript, on Codecademy, Loops
2022-03-07Loop in Reverse Using a for Loop, Learn JavaScript with Codecademy, Looping in Reverse, Loops JS ES6
2022-03-07The For Loop Explained, What is a for Loop in JavaScript, Learn for Loop on Codecademy's Learn JS



Tags:
Coding
ES6
JS
JavaScript
Programming
Tutorials