Comment on A Javascript journey with only six charactersparentComments−qaq9yNone is preventing you from writing let f = (a,b,c) => {a * b ^ c}; in JS−1000hz9ywhen you include curly braces in arrow functions you lose the implicit return, so this function would return undefined−johnhenry9yYou can get the implicit return if you use parentheses instead:f = (a,b,c) => (a * b ^ c)−qaq9yvery true :)
Comments
None is preventing you from writing let f = (a,b,c) => {a * b ^ c}; in JS
when you include curly braces in arrow functions you lose the implicit return, so this function would return undefined
You can get the implicit return if you use parentheses instead:
f = (a,b,c) => (a * b ^ c)
very true :)