A function is a list of instructions which can be executed ("called") at any point in its lifetime. A function literal looks like this: function (){} All three syntax elements (name, parameters, and statements) are completely optional; however, a function is worthless if it does not contain any statements. The need for a name and parameter list depend upon the intended use of the function. If a function is not given any name, it is anonymous.
Identifier (URI) | Rank |
---|---|
dbkwik:resource/2GcBKPS7esgjZcyAw7F39A== | 5.88129e-14 |
dbr:Function_object | 5.88129e-14 |
dbr:Function_model | 5.88129e-14 |
dbr:Function_(engineering) | 5.88129e-14 |