HTTP requests are an integral part of web developments. React, being a frontend library, doesn’t have native support for sending HTTP requests. However, it can...
PDF: https://github.com/academind/react-complete-guide-code/blob/13-class-based-cmp/slides/slides.pdf What and why Class-based components in React are ES6 classes that extend the component class from React library. They offer more features than...
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...