Posted on Oct 13th, 2021
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: Currency Converter
Link to assignment invitation
🔖 Resources
HTTP
APIs
AJAX, Fetch, & JSON
Fetch requests use JavaScript promises to handle responses. Promises are 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.
🦉 Notes
{“mode”:”full”,”isActive”:false}%
Posted on Oct 12th, 2021
Today’s topics
- Introduction to the object data structure in JavaScript
- Storing data in and retrieving data from objects
🎯 Project: Build a customer directory
Link to assignment invitation
🔖 Resources
🦉 Code, Notes & Videos
Posted on Oct 11th, 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
Posted on Oct 7th, 2021
Today’s topics
- What’s a bug?
- Debugging tools and techniques
- Errors and exceptions
- Handling errors with try…catch
🐛 Project: Debugging JS Calculator
For today’s assignment, there is no code to write and no repo to clone. Continue pushing forward on your JS calculator!
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!
Did you finish your JS calculator? Kudos! Here’s another project to try your hand at…
invitation link to the assignment
Still looking for things to do? Revist an previous lab or project that you were unable to complete!
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
Code, slides, and video from class
Posted on Oct 6th, 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 Monday, October 11.
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