Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 276 Bytes

File metadata and controls

18 lines (15 loc) · 276 Bytes

Section 6.4: Types of Functions

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; };