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
On this page of the site you can watch the video online Promise in JavaScript🤔 🤞 with a duration of hours minute second in good quality, which was uploaded by the user Technical Glitch 12 January 2023, share the link with friends and acquaintances, this video has already been watched 1,072 times on youtube and it was liked by 33 viewers. Enjoy your viewing!