TypeScript Functions Types of Functions


Example

Named functions

function multiply(a, b) {
    return a * b;
}

Anonymous functions

let multiply = function(a, b) { return a * b; };

Lambda / arrow functions

let multiply = (a, b) => { return a * b; };