Posted on Sep 22nd, 2020
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
Create a GitHub Profile
Link to assignment invitation
🔖 Resources
HTTP
APIs
AJAX & Fetch
Fetch requests use JavaScript promises to handle responses. This is 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.
Code and Videos
Posted on Sep 21st, 2020
Today’s topics
- Introduction to the object data structure in JavaScript
- Storing data in and retrieving data from objects
- Working with dates
Project
Build a customer database
Link to assignment invitation
🔖 Resources
Code & videos
Posted on Sep 18th, 2020
Here’s a video of a short, optional class meeting checking in about calculator progress.
Video of Q&A
Access Passcode: @62mK&0U
And here is a short video I recorded to explain locally and globally scoped variables, which may help as you work through your calculator assignment.
Local and Global Scope in JS
Posted on Sep 17th, 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
🔖 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 interesting, but definitely not necessary at this stage:
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, and Video
Posted on Sep 16th, 2020
Today’s topics
- Review what we have seen so far in JS
- Scope and arrow functions
- Practice, practice, practice
Project
Exercism: JavaScript Track
To get some more practice writing JavaScript, we’re going to use an awesome free online tool called Exercism.
Please sign up (you can use your GitHub account) and choose the JavaScript track. There are two ways to use Exercism, in Practice Mode or Mentor Mode. For now, just choose Practice Mode.
Work through the setup instructions to install Exercism on your computer with Homebrew. Complete at minimum the first three following exercises in the JavaScript track:
- Hello World
- TwoFer
- Raindrops
- Hamming
- High Scores
- Word Count
For each exercise, follow the instructions on Exercism to upload your solution.
To submit your homework, paste your solution urls into this form.
Video demo of downloading, completing, and submitting the first exercise
🔖 Resources