arrow functions Flashcards
1
Q
What is the syntax for defining an arrow function?
A
let add =(x , y) => x+y
2
Q
When an arrow function’s body is left without curly braces, what changes in its functionality?
A
It doesn’t need the return keyword
3
Q
How is the value of this determined within an arrow function?
A
value of this is determined by the outer function