Session 11

November 11, 2025

Internet Walk

Krew will present an internet walk. Next week, Lena will present.

Lecture

JavaScript and the Document Object Model (DOM) is our subject today.

Break

Activity: The Circle

Get a page up on your class site at the following url:

myusername.github.io/harmonic-collection/the-circle

This page must have a linked, separate CSS file and JavaScript file.

Create a blue circle in the center of the page. Make the size of the circle (diameter) half of the viewport height.

Write a function called makeItGreen() that can change the circle’s color to green.

Write a JavaScript object based on one of the following topics: a recipe, a house, or a fictional character. Your object must include at least 5 properties of various types (including strings, numbers, and at least one array and one nested object). Then, get this text to display inside the center of the circle.

Bonus: make the circle change between at least 3 colors based on a timing function

Homework

Complete entry 8 for your Harmonic Collection. It must involve JavaScript in some way!