Apr 01: JavaScript Promises
Learning Objectives
After today's class, you should be able to:
- Describe how Promises help manage asynchronous operations.
- Create a Promise to run a long-running function asynchronously.
- Generate a bar chart visualizing a given dataset using Plotly.js.
Lesson Outline¶
Part 1 [25 min]
- Promise – MDN Reference
- 27_Textbook_Promises.pdf – by Connolly and Hoar
- 28_Promises-Primes.pdf – by Kirkpatrick
Activity [20 min]
Part 2 [30 min]
- 29_Textbook_Plotly.pdf – by Connolly and Hoar
- Plotly.js Basic Charts