-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Hi Ben.
I've tried this command
// pass functions as arguments to other functions
const superFunction = (fn, a, b) => fn(a,b);
console.log(superFunction(multFunction,2,5));
I'm selecting superFunction to run, and I found an error:
TypeError: fn is not a function
Do you have explanation about this ?
Metadata
Metadata
Assignees
Labels
No labels