Posted on May 24th, 2021
Today’s topics
- What’s a bug?
- Debugging tools and techniques
- Errors and exceptions
- Handling errors with try…catch
For today’s assignment, there is no code to write and no repo to clone. Your task is to debug the weekend homework together in collaboration with one or two others in class and commit your debugged code. Please note in a commit message the name(s) of the person(s) who helped you debug!
Links and resources
There’s 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!
🤓 Essential Nerd Humor: Gary Bernhardt’s WAT talk
Slides from class
Posted on May 20th, 2021
Today’s topics
- HTML forms
- Working with form data in JavaScript
- Client-side form validation with JavaScript
Project
Link to the assignment invitation
🔖 Resources
🦉 Code, Notes & Videos
Posted on May 19th, 2021
Today’s topics
- Using JS in the browser
- The DOM: the Document Object Model
- DOM manipulation with JS
- JS Events
🎯 Project: JavaScript Calculator
This assignment is due tomorrow morning.
Link to the assignment invitation
🔖 Resources
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 enlightening, although not strictly necessary at this stage:
This is a good explanation about how JS events “bubble” up the chain of elements on the page:
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 & Video
Posted on May 18th, 2021
Today’s topics
- Using arrays
- Iteration: using loops with arrays
- Transforming arrays with map, reduce, and filter
🎯 Project
JavaScript Problem Set 2
Link to the assignment invitation
🔖 Resources
🦉 Code & Notes
Posted on May 17th, 2021