Momentum logo
Team 14 Classroom

JavaScript and the DOM

Posted on Jul 26th, 2022

Today’s topics

  • Arrow notation for functions
  • DOM manipulation with JS
  • Events in JS

🎯 Project for the week: JavaScript Calculator

Part 1: Due 9am Wednesday, July 27

Part 2: Due 4pm Thursday, July 28

When you complete part 1, continue to part 2. Continue in the same repository as part 1, nothing additional to clone for part 2. here.

🐈 Events 🐶

🔖 Resources to use as reference

⭐️ 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 and the DOM

Posted on Jul 25th, 2022

Today’s topics

  • Homework review
  • Using JS in the browser
  • The DOM: the Document Object Model
  • Events in JS

Pre-Work for Calculator: Due 9am Tuesday, July 26

Part 1: Due 9am Wednesday, July 27

Part 2: Due 4pm Thursday, July 28

When you complete part 1, continue to part 2. Continue in the same repository as part 1, nothing additional to clone for part 2. here.

🐈 Events 🐶

🔖 Resources to use as reference

⭐️ 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 Jul 20th, 2022

🗓️Today’s topics

  • Using arrays
  • Iteration: using loops with arrays
  • Transforming arrays with map, reduce, and filter

🎯 Project

Build A Game

Optional:

🔖 Resources

⭐️ EXTRA/TMI

🦉 Code, Notes & Video

JavaScript Basics

Posted on Jul 19th, 2022

🗓️ Today’s topics

  • Using variables, data types, conditionals, loops, and functions

🎯 Project: Free Code Camp JavaScript Exercises

Finish Second Half

JavaScript practice exercises

🔖 Resources

🦉 Notes