What is the syntax for defining an arrow function?
let add = (x,y) => x + y
if there is one argument no parenthese
if there is no argument or multiple theyre mandatory
after arrow u can have a codeblock or a return expression
When an arrow function’s body is left without curly braces, what changes in its functionality?
if an arrows function body is left without curly braces then it can only be used for expressions and has an implies “return’, as statements require curly braces
How is the value of this determined within an arrow function?
the value of this in an arrow function is determined by the value of this in the outer function because it doesn’t have it’s own