Exam4Training

What are two unique features of functions defined with a fat arrow as compared to normal function definition? Choose 2 answers

What are two unique features of functions defined with a fat arrow as compared to normal function definition? Choose 2 answers
A . The function generated its own this making it useful for separating the function’s scope from its enclosing scope.
B . The function receives an argument that is always in scope, called parent This, which is the enclosing lexical scope.
C . If the function has a single expression in the function body, the expression will be evaluated and implicit returned.
D . The function uses the this from the enclosing scope.

Answer: A,C

Exit mobile version