JavaScript Promises, Callbacks, and Async/Await for Beginnersby@sujan-chhetri
7,496 reads

JavaScript Promises, Callbacks, and Async/Await for Beginners

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

JavaScript Promises, Callbacks, and Async/Await for Beginners are great and solve the looping problem with callbacks. The core idea behind promises is that a promise represents the result of an asynchronous operation. A promise in JavaScript is the same promise that we make in our life. If I promise to do something for a friend then it has two results: If I fulfill that promise by working on it then he will be happy or say it’s resolved in terms of Javascript. And if the promise is never fulfilled by me then I failed to keep my promise.

Coin Mentioned

Mention Thumbnail
featured image - JavaScript Promises, Callbacks, and Async/Await for Beginners
Sujan Chhetri HackerNoon profile picture

@sujan-chhetri

Sujan Chhetri


Receive Stories from @sujan-chhetri

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa