Arrow Functions Flashcards
1
Q
What is the syntax for defining an arrow function?
A
(x, y) => if more than one parameter
2
Q
When an arrow function’s body is left without curly braces, what changes in its functionality?
A
it stop ats the ;
3
Q
How is the value of this determined within an arrow function?
A
you assign the this value to a variable that doesn’t shadow inside the anonymous function as follows