ES6 ARROW FUNCTIONS Flashcards
1
Q
What is the syntax for defining an arrow function?
A
let something = (parameter) => code
2
Q
When an arrow function’s body is left without curly braces, what changes in its functionality?
A
implicity return
3
Q
How is the value of this determined within an arrow function?
A
This is always defined by surrounding code block
4
Q
How is the value of this determined?
A
this is defined when arrow functions are being defined