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.
Graph IRI | Count |
---|