ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 125 - Certified JavaScript Developer I discussion

Report
Export

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.
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 parentThis, which is the enclosing lexical scope.
Answers
B.
The function receives an argument that is always in scope, called parentThis, 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.
Answers
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.
Answers
D.
The function uses the this from the enclosing scope.
Suggested answer: A, B
asked 23/09/2024
PRABHAT VAIBHAV
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first