🥚 You understand the JavaScript Event Loop, and can demonstrate this by using setTimeout and setInterval to schedule simple tasks.
🥚 You can explain why Asynchronous Programming is important for programs that have blocking and non-blocking tasks.
🥚 You can explain the basics of the Client/Server model and HTTP requests and can fetch data from RESTful APIs.
🐣 You can break down an asynchronous problem into smaller tasks and solve it using promises. This includes identify which tasks depend on each other and which are independent:
dependent tasks: The return value from one task is required to start the next task, these must be completed in a specific order - .then
independent tasks: These tasks do not use each other's return values, they can be completed at the same time - Promise.allsystem.
🐣 You can fetch data from an API and render it into the DOM using /api-calls, /handlers and async/await syntax.
🐣 You can write unit tests for functions that return promises using async/await syntax.
Last two exams, one is upcoming week and the other in September so it's good i studied some async programming on my own earlier as it's hard to find 20hr a week now.
Sunday Prep Work
Completed some exercisers and going to try to make the stopwatch before Sunday class
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.