Ad
  • Custom User Avatar

    Also arrow functions context differ from regular function expressions and declerations. They follow Lexical scope. I recomend reasearching this difference and when it is better to use an arrow funciton over other ways of writing it. It makes a difference when using the 'this' key word.

    the most common use is just to make things shorter. Arrow functions automatically return without specifying 'return' if the function is on one line.