Javascript syntax

1 · Shane Mulligan · Dec. 31, 2015, 4 p.m.
1 2 3 4 5 6 7 lambda [javascript] [ES6] Comes in 2 flavors: - function expression - arroy function expression arrow function expression https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow%5Ffunctions function expression (this is just a lambda?) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/function 1 2 3 const getRectArea = function(width, height) { return width * height; }; Rewriting function expressions as arrow function expres...