Javascript's `this` Keyword: Regular Functions vs Arrow Functions

The this keyword in JavaScript operates differently depending on the type of function. Regular functions determine this at call time based on the invocation context, whereas arrow functions lexically bind this from the surrounding scope. How this Works in Regular Functions For a standard function, this points to the object that calls the functi ...

Posted on Sat, 29 Aug 2026 16:46:05 +0000 by freelancedeve

Advanced JavaScript: Function Enhancements

Function Hoisting Function declarations in JavaScript are hoisted to the top of their lexical scope, allowing them to be invoked before they are defined. This behavier offers greater flexibility in function placement. Function expressions do not exhibit hoisting Hoisting occurs strictly within the same scope Example: calculateTotal() function ...

Posted on Mon, 17 Aug 2026 16:47:17 +0000 by abcd1234

Understanding JavaScript's `this` Keyword in Depth

JavaScript's this keyword is a comon source of confusion. Unlike many other languages, the value of this inside a function is not determined by where the function is defined, but by how it is called. In other words, the invocation context decides what this points to. In JavaScript, a function can be called in several ways: direct call, method c ...

Posted on Fri, 31 Jul 2026 16:18:10 +0000 by leon_zilber