Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • whats special about the arrow function over direct call ? Commented May 20, 2019 at 5:50
  • @AshishKamble the this in arrow functions refers to the parent's context (i.e. Parent class). Commented Jun 11, 2019 at 13:14
  • 2
    This is a duplicate answer. You could add a comment to the accepted answer and mention about this experimental feature to use arrow function in class. Commented Aug 28, 2019 at 15:47
  • What is (was) the most upvoted answer? Can you be more specific? The most upvoted answer may change over time. Commented May 21, 2021 at 15:23