Momentum logo
Team 17 Classroom

JS Objects

Posted on Feb 2nd, 2023

Today’s topics

  • Introduction to the object data structure in JavaScript
  • Storing data in and retrieving data from objects
  • Using functions with objects and DOM manipulation.

🎯 Project: Build a customer directory

Link to assignment invitation. This assignment is due Monday, February 6.

🦉 Code, Notes & Videos

🔖 Resources

⭐ EXTRA/TMI

JavaScript and the DOM

Posted on Jan 31st, 2023

Today’s topics

  • More practice with functions and arrays
  • Using JS in the browser
  • The DOM: the Document Object Model
  • DOM manipulation with JS
  • Events in JS

🎯 Project: JavaScript Calculator

UPDATE: This assignment is due Thursday, Feb 1 at 9am. 🌺

NOTE: Your calculator does not have to look like the green one. It needs the same buttons, but you can add your own style. Steps 1 & 2 are HTML and CSS, so start there. Then, move on to adding the event listener to one button, then all the numbers, and so on.

🦉 Code & Notes

🔖 Reference Shelf

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

JavaScript Arrays

Posted on Jan 29th, 2023

🗓️Today’s topics

  • Loops in JavaScript (while, for, for…of)
  • Using arrays
  • Iteration: using loops with arrays

👩🏽‍💻 In-class Practice

We will refer to this problem set in class to practice concepts as we encounter them while looking at arrays and loops.

🎯 Project

This is the project you will work on outside of class. It is due Wednesday, February 1
Invitation Link

🦉 Code, Notes & Video

🔖 References

JavaScript Basics

Posted on Jan 26th, 2023

🗓️ Today’s topics

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

🎯 Project: Intro to JavaScript Tutorial

  • Free Code Camp Intro to JS up to and including the “Shopping List” exercise.

    • Complete by Monday, January 30
    • Submit three questions using this form before class on Monday

🔖 References

🦉 Notes