Valid JavaScript-Developer-I Dumps shared by ExamDiscuss.com for Helping Passing JavaScript-Developer-I Exam! ExamDiscuss.com now offer the newest JavaScript-Developer-I exam dumps, the ExamDiscuss.com JavaScript-Developer-I exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com JavaScript-Developer-I dumps with Test Engine here:
Access JavaScript-Developer-I Dumps Premium Version
(224 Q&As Dumps, 35%OFF Special Discount Code: freecram)
Enter your email address to download Salesforce.JavaScript-Developer-I.v2023-02-25.q75.pdf
Recent Comments (The most recent comments are at the top.)
Correct answer is Option B, C.
C. If the function has a single expression in the function body, the expression will be evaluated and implicitly returned.
This is a unique feature of arrow functions. If the body of the function consists of a single expression, you can omit the curly braces and the return keyword, and the expression will be implicitly returned.
B. The function uses the this from the enclosing scope.
Arrow functions do not have their own this context. Instead, they lexically inherit this from the surrounding code at the time they are defined, which means they use the this value from their enclosing scope. This makes arrow functions particularly useful for preserving the this context in situations like method definitions or callback functions.
A and C
B also its correct
because the function uses the this from the enclosing scope.
Why variant B is not correct?