The Journey of #100DaysOfCode (@Ayman_Dandan)

๐ƒ๐š๐ฒ ๐Ÿ : ๐๐ซ๐จ๐ฆ๐ข๐ฌ๐ž๐ฌ ๐ข๐ง ๐‰๐’
A Promise in JavaScript is a way to handle asynchronous operations like downloading a file and sending/receiving a package from the backend. They make the user able to continue in the page and/or doing something else without waiting for the operation to finish. Promises also are used for better error handling, better flow of control definition in asynchronous logic, and improving Code readability.

And always resolve your promises, donโ€™t keep them pending :smile: :computer:

2 Likes