News for hackers. Stuff that matters.
Re:A Javascript journey with only six characters by qaq on Saturday October 08, 2016 @11:27AM (#12667245)
None is preventing you from writing let f = (a,b,c) => {a * b ^ c}; in JS
Re:A Javascript journey with only six characters by 1000hz on Saturday October 08, 2016 @12:33PM (#12667517)
when you include curly braces in arrow functions you lose the implicit return, so this function would return undefined
Re:A Javascript journey with only six characters by johnhenry on Saturday October 08, 2016 @01:20PM (#12667730)
You can get the implicit return if you use parentheses instead:

f = (a,b,c) => (a * b ^ c)

Re:A Javascript journey with only six characters by qaq on Saturday October 08, 2016 @12:35PM (#12667522)
very true :)