Open Haneefa-Shaik opened 1 year ago
Week 1
Understanding Js Event loops. setInterval, setTimeOut and clearInterval is quiet clear now.
I tried a stopwatch using setInterval and clearInterval. Stopwatch I did start, stop and reset buttons and now I am working on the lap button. And after that will separate the concerns.
- For me, callback is simpler in understanding than promise.
try reading this explanation about it: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises In a real world scenario, you can use setTimeout to execute something after a certain amount of time. By using promises, you can determine what should run after an operation is completed or has failed by executing callbacks (.then and .catch). Usually you would add many .then callbacks, chaining them together.
- As I said before, the promise topic is confusing.
yes it is and therefore we will cover it on Sunday as well
Week 2
Understanding promises. Now it is understandable creating promises after doing the exercises. Last sunday class was really helpful.
Fetching data is very interesting and really helpful in doing the task.
Kindly find my completion of task below. User-API
Asynchronous Programming
Learning Objectives
setTimeout
andsetInterval
to schedule simple tasks.fetch
data from RESTful APIs..then
Promise.all
system./api-calls
,/handlers
andasync
/await
syntax.async
/await
syntax.