Momentum logo
Team 1 Classroom

JS Debugging and Error Handling

Posted on May 4th, 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 Apr 30th, 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

Code, slides, and video from class

JavaScript and the DOM

Posted on Apr 29th, 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

⭐️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:

Code, slides, and video from class

JavaScript Basics

Posted on Apr 27th, 2020

Today’s topics

  • Basic programming concepts in JavaScript
  • Using variables, data types, conditionals, loops, and functions

Project

JavaScript Problem Set 1

Link to the assignment invitation

TODO

  1. Read So You Want to Be a Wizard by Julia Evans
  2. JavaScript problem set 1

Code, slides, and video from class