IT Log

Record various IT issues and difficulties.

Tag: arrow functions


  • JS Arrow Function This Reference

    Arrow functions in JavaScript do not have their own this context. Instead, they inherit the this value from the surrounding lexical environment at the time of their creation. This is different from regular functions, where this can be dynamically determined based on how the function is called. Key Points: Lexical Scoping: The this inside an…