Momentum logo
Team 2 Classroom

Creating a single-page app with AJAX

Posted on Jun 4th, 2020

Today’s topics

  • Using Fetch to create, read, update, and destroy data (CRUD)
  • HTTP methods: GET, POST, PUT/PATCH, DELETE
  • HTTP status codes

Project

Create a single page note-taking app

Link to assignment invitation

⭐️EXTRA/TMI

For more information about how the internet works and the mechanics of a request over HTTP, check out this comic by the always brilliant Julia Evans!

Code, slides, and video from class

Using APIs with JS and Fetch

Posted on Jun 3rd, 2020

Today’s topics

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

Project

Create a GitHub Profile

Link to assignment invitation

Code, slides, and video from class

JS Objects

Posted on Jun 2nd, 2020

Today’s topics

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

Project

Build a customer database

Link to assignment invitation

Code, slides, and video from class

JS Debugging and Error Handling

Posted on Jun 1st, 2020

Today’s topics

  • What’s a bug?
  • Debugging tools and techniques
  • Errors and exceptions
  • Handling errors with try…catch

Project

Debugging Parking Validation Form

For this assignment, there is no code to write and no repo to clone. Your assignment is to debug the weekend homework together in pairs and commit your debugged code. Please note in a commit message the name of the person who helped you debug!

⭐️EXTRA/TMI

There’s a an awesome article about stacks, which we encounter in a stack trace in our debugging adventures, in Vaidehi Joshi’s BaseCS blog series. It’s not necessary to read this to understand debugging, but if you want some more information about terminology and what’s really happening, it’s great!

Code, slides, and video from class

JavaScript and Forms

Posted on May 29th, 2020

Today’s topics

  • HTML forms
  • Working with form data in JavaScript
  • Client-side form validation with JavaScript

Project

JavaScript Form Validation

Link to the assignment invitation

⭐️EXTRA/TMI

Code, slides, and video from class