Arrow functions
are shorter to write, instead of function(){}
write () => {}
instead {}
use an expression, as return value
one parameter can be written without parens
many params require parens
the function body needs parens to return an object
Related Katas
function API
function.length
(as introduced in ES1)function.bind()
function.length
(with ES5 features)function.length
(with ES6 features)function.name
Arrow functions
- basics
- function binding
Async Function
- basics
Difficulty Level
BEGINNER
First Published
19 March 2015
Stats
5 tests to solve