Search⌘ K
AI Features

Solution Review: Arrow Functions

Explore the key characteristics of JavaScript arrow functions, including their syntax, lexical 'this' binding, and appropriate use cases. Learn how arrow functions differ from regular functions and understand when to use them effectively in coding and interviews.

Question 1: Solution review #

Explanation #

Let’s briefly discuss the options one-by-one:

  • Option A: Incorrect. An arrow function does not have its own new.target property so it cannot be used as a constructor function. It cannot be called by new as there is no internal method [[Construct]] that allows it. They don’t have any prototype ...