lucasklaassen / javascript-promises

Lesson plan: Promises

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Promises

Lesson Routes

/promises - Example of how you can use a single promise to resolve a value and handle errors.

/promise-callbacks - Example of how you can use a multiple promises to resolve multiple values and handle errors.

/async-await - Example of how you can use the Async/Await syntax to resolve a single promise.

/async-await-callbacks - Example of how you can use the Async/Await syntax to resolve multiple promises.

Exercise

API: https://github.com/shevabam/breaking-bad-quotes

Using the breaking bad API defined in the component, create a promise that queries the API (using a GET request) and change the Author and Quote on the page.

Use a promise and the async/await syntax to accomplish this.

About

Lesson plan: Promises


Languages

Language:TypeScript 83.0%Language:JavaScript 9.6%Language:HTML 6.9%Language:CSS 0.4%