The ‘this’ keyword is a fundamental concept in JavaScript that can be confusing for both new and experienced developers. What is the ‘this’ keyword? In...
Function with there lexical scope form a bundle that’s called lexical scope. In JavaScript, a closure is a function that reference variable from its outer...
IIFE: Immediately Invoked Function Expression An IIFE, or Immediately Invoked function Expression, is a common JavaScript design pattern used to create a self-contained and private...
Arrow functions are a concise way to write functions in javaScript. They were introduced in ECMAScript 6 (ES6) and provide a shorter syntax compared to...
In JavaScript, parameters of functions default to undefined. However, in some situations it might be useful to set a different default value. This is exactly...
In JavaScript, functions are fundamental building blocks that allow developers to encapsulate a set of statements performing a task or calculating a value. A function...
In JavaScript, an operator is a symbol used to perform operations on operands (numbers, values or variables). for example, Here + is an operator that...