2080 9

BIT301 ยท 2080 ยท 5 marks

Differentiate anonymous function from variable function.

Differentiate anonymous function from variable function. [5]

Web Technology IIChapter 3: Functions and Variable ScopeAnonymous functions and variable functions

An anonymous function (also called a closure) is a function that is defined without a name. It can be assigned to a variable, passed as an argument, or returned from another function. Syntax: - The function itself has no identifier/name. - It is defined using the function keyword without a name. ...