jskatas.org Continuously Learn JavaScript. Your Way.

Arrow functions: function binding

Arrow functions have lexical this, no dynamic this.

Donate to NGO Julenka. Support Ukranians in need. Julenka is an NGO which my brother founded in 2011 to support Ukranian families and kids in need.

Arrow functions have lexical this, no dynamic this

  • bound at definition time, use =>
  • can NOT bind a different context
  • arguments does NOT work inside arrow functions