11 1 1 functions are data

Solutions on MaxInterview for 11 1 1 functions are data by the best coders in the world

showing results for - "11 1 1 functions are data"
Elina
23 Jun 2017
1/*Like other data types, functions may be assigned to variables. 
2If we create a function named hello, we can assign it to a variable 
3with this syntax:*/
4
5function hello() {
6
7   // function body
8
9}
10
11let helloFunc = hello;
12
13/*When a variable refers to a function, we can use the variable name to
14call the function:*/
15
16helloFunc();
similar questions
queries leading to this page
11 1 1 functions are data