Behind the Scenes, you will see that JavaScript always takes all the declarations first. That’s basically the hosting. Since this is the default behavior in JavaScript. In this article, I will discuss only the hosting specific. Since hosting is the default behavior, all functions in JavaScript are hosted in the Creation phase. That’s why we can actually call…Continue reading The concept of hoisting in JavaScript
Category: JavaScript
JavaScript is the programming language of HTML and the Web. JavaScript often abbreviated as JS, is a high-level, just-in-time compiled, multi-
Behind the Scene in JavaScript
If you understand how Code Behind works in the scene, you can write code at your convenience anyway. In this episode of mine today, I will discuss as much detail as possible about how JavaScript works within the scene. JavaScript is usually run in an environment. Often it may be our most widely used browser, or another…Continue reading Behind the Scene in JavaScript
JavaScript: async and await
If the arrow function is: This is how you can identify asynchronous code in your function. This time you have to identify the original asynchronous codes one by one and tell Javascript that this is my promise that it cannot go to the next instruction until it is solved. Before that we will need a promiss, right? Yes,…Continue reading JavaScript: async and await
Promise in JavaScript
Creating a Promise: The task of the Promise is to handle such asynchronous operations. Now we are running the operation on a remote server, but until data arrives we cannot say that operation will not succeed or fail. And basically, the promise works to handle these. In most cases, we do not have to create our own promises. We…Continue reading Promise in JavaScript
Callback Function in JavaScript
Callback function means that it is a function that executes after another function is executed. And that’s why it’s called callback function. #synchronous function #Asynchronous function #Infinity Loop Now what’s the callback job? We know about the asynchronous behavior of JavaScript. If JavaScript takes time to do a task, do not wait and move on to the…Continue reading Callback Function in JavaScript
Filter
The filter is the same as the map, but if the function applied here returns true, then it will move to the new array, or if the function returns false then that item will not be in the array. Suppose I want to extract only the odd numbers from the following array and place them…Continue reading Filter
Map
The map() method creates a new array with the results of calling a provided function on every element in the calling array Suppose you have an array: var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9]; Now you want to find the square of each item in this array. So what you…Continue reading Map
Javascript ES6 – Map
Javascript’s ES6 has nothing quite new in our eyes without syntax differences, or syntactic sugar. But this time we will discuss something completely new. Yes this thing has been added to ES6 completely new. It never existed in any previous version of JavaScript. That’s the map Map. Do not mistake this map Mapas a map map. The reason mapis a method. But the map we Mapwill talk…Continue reading Javascript ES6 – Map