Asynchronous JavaScript

This Blog will explain the fundamentals of asynchronous operations in Javascript which include Callbacks, Promises, and Async/ Await to handle deferred operations in Javascript. I will explain to you all three terms in detail with examples.

What are Callbacks?

A callback function is a function that is passed to another function so that when the first function is executed, the second one which is passed to the first one will also execute. Normally callback runs after the parent function completes its operation. …

Photo by Marcos Henrique Da Silva on Toptal

In a Web Development Industry, We all are Using and Building REST APIs in our daily life. Simply, API (Application Programming Interface)means communication between applications. Now the question is What is RESTful API?

In this article, I am going to explain the basic definition of RESTful API.

Let’s say if we are trying to find videos about Elon Musk on Youtube. We open Youtube, type “Elon Musk” into a search field, hit enter, and we can see a list of videos about Elon Musk. A REST API works in a similar way. …

After ES2015/ES6, JavaScript is releasing new features every year and makes our lives easier as developers. Last year, in ES2020/ES11, They released some features such as BigInt, import.meta, import(), String.prototype.matchAll, Promise.allSettled, globalThis, for-in mechanics, Optional Chaining and Nullish Coalescing Operator.

In this article, I will explain Optional Chaining and Nullish Coalescing Operators in detail with examples.

What is Optional Chaining Operator?

“The Optional Chaining operator (?.) access values without checking if the parent object exists. Instead of returning an error, it will return null or undefined”

Let’s understand with an example. Here, we have two objects studentA and studentB and wrapped in students Array.

Brijesh Panchal

MERN stack Developer || writing about Javascript, MongoDB, React, Express and NodeJS related articles

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store