Promise in JavaScript🤔 🤞

Опубликовано: 09 Август 2026
на канале: Technical Glitch
1,085
33

A promise is simply a object that holds an asynchronous task which is yet to be completed. When you define a promise object in your script, instead of returning a value immediately, it returns a promise.
Use: Performing asynchronous tasks

Callback is technique in which we pass a function to another function as an argument for performing asynchronous tasks.
Promises vs callback:
Callback are prone to have callback hell issues but there is no such problems in Promise.

#shorts #short #javascript #programming #asynchronous #coreengineering #promises