Passing Function as Argument | Functions I JavaScript

preview_player
Показать описание
Since JavaScript supports higher order functions and since a function is just another value in JavaScript, it is possible to pass a function as an argument to another function.

In this lecture you will how to pass a function as an argument to another function in JavaScript and what are its advantages.
Рекомендации по теме
Комментарии
Автор

You have explained far better than the top tutors I know.

salah
Автор

Thank you SO MUCH for this. This is the first explanation of using functions as parameters that actually gave me a REASON to pass a function into another function.

shaidyn
Автор

Prolly the best tutorial on this topic, thanks!

raven.
Автор

This is an awesome tutorial, ty so much

Pywyoyuyp
Автор

Wow🔥🔥🔥 Superb explanation... You are an awesome teacher..

sona
Автор

Thank you for this. I only had a basic understand but often got confused while using it.

olejemedickson
Автор

Passing Function as Argument to a Generic Function, so clearly explained. Thanks.

{2025-03-18}

Pareshbpatel
Автор

Thank you for the detailed explanation.

bama
Автор

Why not use birthYears and calculateAge instead of (arr, func) ?

MARKPAULRAMOS