← 모든 태그

#async

12개의 노트

What is a JavaScript promise

A Promise in JavaScript represents a value that may not be available yet but will be at some point. Promises provide a way to handle asynchronous oper...

dev

What is callback hell in JavaScript

**Callback hell**, often referred to as **Pyramid of Doom**, describes a situation in JavaScript where multiple nested callbacks become difficult to m...

dev

What is Event Loop in JavaScript

The Event loop is one the most important aspect to understand in JavaScript. It is the mechanism that allows JavaScript to perform non-blocking operat...

dev

How does Event Loop work in JavaScript

The Event loop has two main components: the Call stack and the Callback queue.

dev

Is it possible to run 2 lines of code at the same time in JavaScript

No, it is not possible to run 2 lines of code at the same time in JavaScript. JavaScript is a single-threaded language, which means that it can only e...

dev

What are Event Emitters in Node.js

Event Emitters is a class that can be used to emit named events and register listeners for those events. It is used to handle asynchronous events in N...

dev

What is Event Loop in Node.js

The event loop is a single-threaded loop responsible for handling all asynchronous tasks in Node.js. It continuously checks for events and executes as...

dev

How Node.js handle errors

There are four fundamental strategies to report errors in Node.js:

dev

Preload

Preload is a browser optimization that allows critical resources (that may be discovered late) to be requested earlier

dev

How Does Event Loop Work In JavaScript

The Event loop has two main components: the Call stack and the Callback queue.

dev

Is It Possible To Run 2 Lines Of Code At The Same Time In JavaScript

No, it is not possible to run 2 lines of code at the same time in JavaScript. JavaScript is a single-threaded language, which means that it can only e...

dev

How Node.js Handle Errors

There are four fundamental strategies to report errors in Node.js:

dev