-
In short |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
A programming language is said to have First-class functions when functions in that language are treated like any other variable. For example, in such a language, a function can be passed as an argument to other functions, can be returned by another function and can be assigned as a value to a variable. First-class functions are functions that are treated as variables. They can also be parsed into other functions as arguments. In JavaScript, functions are treated as values or just another type of object |
Beta Was this translation helpful? Give feedback.
-
A programming language is said to have First-class functions when functions in that language are treated like any other variable. For example, in such a language, a function can be passed as an argument to other functions, can be returned by another function and can be assigned as a value to a variable. Passing a function as an argument |
Beta Was this translation helpful? Give feedback.
A programming language is said to have First-class functions when functions in that language are treated like any other variable. For example, in such a language, a function can be passed as an argument to other functions, can be returned by another function and can be assigned as a value to a variable.
First-class functions are functions that are treated as variables. They can also be parsed into other functions as arguments.
In JavaScript, functions are treated as values or just another type of object