Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
qaq
· 10y ago · 0 comments
None is preventing you from writing let f = (a,b,c) => {a * b ^ c}; in JS
Comments
[–]
1000hz
10y ago
when you include curly braces in arrow functions you lose the implicit return, so this function would return undefined
[–]
johnhenry
10y ago
You can get the implicit return if you use parentheses instead:
f = (a,b,c) => (a * b ^ c)
[–]
qaq
OP
10y ago
very true :)