ES6 Flashcards
1
Q
What is the syntax for defining an arrow function?
A
variable variablename
2
Q
When an arrow function’s body is left without curly braces, what changes in its functionality?
A
there is only one line of code and cant be if conditions
3
Q
How is the value of this determined within an arrow function?
A
value of this id determines base on its parent of this function