Promise in JavaScript🤔 🤞

Publicado em: 12 Janeiro 2023
no canal de: Technical Glitch
1,072
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


Nesta página do site você pode assistir ao vídeo on-line Promise in JavaScript🤔 🤞 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Technical Glitch 12 Janeiro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,072 vezes e gostou 33 espectadores. Boa visualização!