vijayashree.hashnode.devPromises in JavaScriptPromises will perform asynchronous operations. They were not always part of JavaScript. Callbacks worked together with asynchronous functions to produce desired results in the past. A callback is any function that is a parameter of an async function,...Mar 28, 2024·3 min read
vijayashree.hashnode.devHigher Order Functions in JavaScriptBasically, a function which takes another function as an argument or returns a function is known as a higher order function. In JavaScript, functions are treated as first-class citizens. We can treat functions as values and assign them to another var...Mar 27, 2024·4 min read
vijayashree.hashnode.devEvent loop in JavaScriptCall back function : A function when called sometime later is known as a call back function. Using call back functions we can run asynchronous operations. Browser APIs: Browser has many super powers/APIs which provide to us, like timer, local storage...Mar 14, 2024·3 min read
vijayashree.hashnode.devBlock scope and variable shadowing in JSTo understand shadowing in JavaScript, we need to be clear with the scope first. Refer the below link : SCOPE Shadowing is nothing but a variable replacing the value of another variable inside a block if declared with same name. var a = 10 ; ...Mar 13, 2024·1 min read
vijayashree.hashnode.devClosures in JavaScriptIn JavaScript, a closure is a function that refers variables in the outer scope from its inner scope. The closure preserves the outer scope inside its inner scope. To understand the closures, you need to know how the lexical scoping works. Please ref...Mar 13, 2024·1 min read