Menu

1 / 2

Call me back its a promise

DEV Community·Shivam Yadav·6 months ago
#Kd2I1fCe
#callback#promise#why#enter#article
Reading 0:00
15s threshold

hey its me shivam

todays topic of blog is callback and promise

so lets start without wasting any time lets move to actual work

soooo the story starts from two things

async operation

sync operation

before understanding callback and promise we first need to understand why async programming even exist

because if u directly jump into promise and callback then trust me u will memorize it

not understand it 😭

Sync Operation

so in this the code run line by line yes this is the simplest explanation of sync operation

for example

console . log ( " Start " );

console . log ( " Task 1 " );

console . log ( " Task 2 " );

console .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.