I cannot understand why in the arrow functions we do not need to wrap the literal of arrow function in the ({}) braces, instead of in this exam
({})
const add = ( a, b ) => ( a + b )
Is equivalent to
const add = ( a, b ) => { return a+b; }
When you use the () after your => it just automatically returns the values inside.
()
=>
Edit: you can also ommit the () entirely, thanks to Tom Fenesh