What is ECMAScript, JavaScript, Node.js, and Bun?Most of us don’t know the difference between ECMAScript and JavaScript and often think that ECMAScript is part of JavaScript. Let's see the difference. ECMAScript: ECMAScript serves as a guideline or set of rules for designing scripting languages. Th...Jul 29, 2024·2 min read
How JavaScript code works: Execution context, callStack, async Js, event loop, web API's callback Queue1.Execution Context What is an Execution Context?Everything in JS happens inside an Execution Context.Execution context is like a big box, it has 2 components.1. Memory Component 2. Code ComponentIn the memory component, all variables and functions a...Mar 12, 2023·6 min read
Rest parameter & Spread operator.Hi Guys, In this blog, I've tried to explain about Rest Parameter and Spread Operator.When we see ... these 3 dots we get confused between rest and spread, Let's see the difference. Rest parameter The rest parameter allows us to pass an infinite numb...Feb 12, 2023·3 min read
Props and StateProps and state Props Props stand for "properties", props is an object which holds the values of attributes of a tag, props are immutable, which means we can not change the value of props, props give way to pass data from one component to another com...Jan 19, 2023·1 min read
ComponentsIn this blog, I've tried to explain React Components. Components mean we can create pieces of our code, e.g header, navbar, etc. We can use one component in another component. Components are reusable. Types of Components There are 2 types of componen...Jan 17, 2023·1 min read
Debouncing and Throttling1. Debouncing Debouncing - It limits the execution of a function call and waits for a certain amount of time before running it again. In the debouncing technique, no matter how many times the user fires the event, the attached function will be execut...Jan 12, 2023·3 min read
Memoization in JSMemoization - Memoization is an optimization technique that can be used to reduce time-consuming calculations by saving previous input in the cache and returning the result from it. example let sum = 0; const calc = (n) => { for (let i = 0; i <= n;...Jan 11, 2023·1 min read