+ 2

why we use promise in js

why we use promise in js

12th Jun 2023, 9:05 AM
Manish Kumar
3 Réponses
+ 3
Search on google. There are many websites about this. https://code.sololearn.com/W0uW3Wks8UBk/?ref=app
12th Jun 2023, 9:27 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 3
12th Jun 2023, 9:27 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 1
Because Javascript is single-threaded and we want our page to still function even though we are downloading stuff or making api calls.
12th Jun 2023, 9:44 AM
Bob_Li
Bob_Li - avatar