Momentum logo
Team 5 Classroom

Getting Data Using APIs with JS and Fetch

Posted on Sep 22nd, 2020

Today’s topics

  • Using JSON for data
  • Basics of HTTP requests
  • Make GET requests with Insomnia client
  • Make GET requests using the Fetch API and display response data on a page

Project

Create a GitHub Profile

Link to assignment invitation

🔖 Resources

HTTP

APIs

AJAX & Fetch

⭐ EXTRA/TMI

Fetch requests use JavaScript promises to handle responses. This is a much bigger topic than we will get into right now, but if you want to know more about what a promise is and how to use it beyond the context of AJAX requests, you can start with the MDN documentation about it.

Code and Videos

JS Objects

Posted on Sep 21st, 2020

Today’s topics

  • Introduction to the object data structure in JavaScript
  • Storing data in and retrieving data from objects
  • Working with dates

Project

Build a customer database

Link to assignment invitation

🔖 Resources

⭐ EXTRA/TMI

Code & videos

JavaScript and the DOM

Posted on Sep 17th, 2020

Today’s topics

  • Using JS in the browser
  • The DOM: the Document Object Model
  • DOM manipulation with JS
  • JS Events

Project

JavaScript Calculator

Link to the assignment invitation

🔖 Resources

⭐️ EXTRA/TMI

This resource is really not at all necessary to understand or do the project, but if you want to know more about the concept of tree structures in computer science, check out this piece from Vaidehi Joshi’s BaseCS blog series. She is awesome! There is also a thoroughly delightful accompanying BaseCS podcast with the equally amazing Saron Yitbarek.

And here is more info about what is happening when a browser renders a page – very interesting, but definitely not necessary at this stage:

If you would like to know more about the JavaScript Event Loop and how it works, I highly recommend this resource. Don’t miss the video of the conference talk that goes along with it – it’s excellent:

Code, Notes, and Video

JavaScript Reps 🏋️‍♂️

Posted on Sep 16th, 2020

Today’s topics

  • Review what we have seen so far in JS
  • Scope and arrow functions
  • Practice, practice, practice

Project

Exercism: JavaScript Track

To get some more practice writing JavaScript, we’re going to use an awesome free online tool called Exercism.

Please sign up (you can use your GitHub account) and choose the JavaScript track. There are two ways to use Exercism, in Practice Mode or Mentor Mode. For now, just choose Practice Mode.

Work through the setup instructions to install Exercism on your computer with Homebrew. Complete at minimum the first three following exercises in the JavaScript track:

  1. Hello World
  2. TwoFer
  3. Raindrops
  4. Hamming
  5. High Scores
  6. Word Count

For each exercise, follow the instructions on Exercism to upload your solution.

To submit your homework, paste your solution urls into this form.

Video demo of downloading, completing, and submitting the first exercise

🔖 Resources