/javascript-promises

Lesson plan: Promises

Primary LanguageTypeScript

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.