Posted on Apr 5th, 2022
Today’s topics
- Today’s first goal is to complete the customer database.
- The next task is to prepare to start working with fetch and AJAX tomorrow.
- 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
✅ Pre-work for before class tomorrow
🎯 Project: Choose Your Own Adventure
Your assignment is to do one of the following assignments. Whichever you choose, it will be due on Friday morning.
🔖 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
Posted on Apr 4th, 2022
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
For Tuesday Morning, 4/5: Start HTML and get at least one customer rendered
on the page
Examples from class that will help you
🔖 Resources
🦉 Code, Notes & Videos
Posted on Mar 31st, 2022
Today’s topics
- Using JS in the browser
- The DOM: the Document Object Model
- DOM manipulation with JS
- Events in JS
🎯 Project: JavaScript Calculator
This assignment is due Monday, April 4.
Link to the assignment invitation for part 1
If you complete part 1, continue to part 2.
Continue in the same repository as part 1, nothing additional to clone. You can read the instructions for
part 2 here.
🐈 Kittens and Puppies 🐶
- Use the notes) and the example from class as a guide.
- The video from morning class is also available, where we talk about DOM mapipulation.
Passcode: .TJ4@Nw@
🔖 Resources to use as reference
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:
Posted on Mar 30th, 2022