Lesson Weekend

This week, we'll learn about APIs (application programming interfaces) and how we can use them to communicate with other applications. In the process, we'll learn how to make API calls and work with asynchrony in JavaScript. We'll also learn about other modern JavaScript functionality such as promises and async functions. We will not use testing for async code in this section, though you should continue testing any synchronous code with Jest. While it's always a good idea to test async code and API calls, doing so is considerably more complex than the testing we did in the last section.

Independent Project Objectives

At the end of this section, you will complete an independent project. Your code will be reviewed for the following objectives:

  • Does the application correctly make an API call?
  • Does the application correctly parse data from the API response?
  • Does the application handle errors when the API call doesn't return a 200 OK status as well as return a message if the API returns no results?
  • Did you follow all setup instructions, including storing your API key and adding instructions for setup in your README?
  • Does the app separate logic into different JavaScript files and use a static method?
  • Does the application correctly use webpack?
  • Project is in a polished, portfolio-quality state.
  • The prompt’s required functionality and baseline project requirements are in place by the deadline.

Lesson 1 of 26
Last updated October 12, 2021