Skip to content

teotimepacreau/Promises-and-AsyncAwait-Exercices-Day36-of-100DaysOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Promises and AsyncAwait Exercices from #30daysofjavascript

https://github.com/Asabeneh/30-Days-Of-JavaScript/blob/master/18_Day_Promises/18_day_promises.md

Learned

  • Promises are useful when performing a single asynchronous task
  • Promises are based on resolve and reject, if it resolves the .then executes, if it rejects we .catch the error
  • Some APIs already have in-built promises as the the fetch API allowing to directly use .then and .catch
  • Async/Await : async make the function a promise, two blocks similar as resolve and reject : try and catch, we put the await in the try block, await allows to wait for the execution of a function before performing a task

🛠️

Vanilla Javascript

Releases

No releases published

Packages

No packages published