Welcome to Making the Page Respond. Priya hosts a monthly board game night, and her page lists the guests and this month’s games. So far, it changes only when she edits its script. In this course, her guests get to use it.
Right now, Priya’s guests reply in a group chat. On the RSVP board you’ll build, a guest clicks Bring Azul, and Azul’s card turns pale blue. Two votes put Catan ahead and give its card a crimson border. A Quick games only button hides the games over 45 minutes, then brings them back. Each of those clicks runs a function your script handed to the browser.
What You’ll Learn
The course has five sections:
- Handing Over Functions: treat functions as values.
- Responding to Clicks: have your code run on every click.
- Finding and Changing Elements: mark Priya’s guests as they arrive.
- Project: Priya’s RSVP Board: build the board yourself.
- Reviewing What You’ve Learned: check what you know with a quiz, and watch the summary.
By the end of this course, you’ll be able to make a page react to clicks, find elements anywhere in it, and switch classes, attributes and data on them, checking each change in the Elements panel.
Before You Start
You need JavaScript basics: loops, functions, and arrays of objects. You should also be able to serve a page with HTML, CSS, and a script, change text on it, and build elements from data. You’ll need a current version of Chrome or Edge, an editor, and a local server, such as VS Code with its Live Preview extension.
If you’ve already built Priya’s page, keep your files and carry on in them. If you’re starting here, the lessons show you how to type along in the Console of an empty browser tab, and the project gives you starter files.
How the Course Works
Text lessons are for typing along, and videos show what moves. The first three sections each end with an exercise that you solve in the browser, and automated tests check your code. The project comes in three graded steps, and then you explain your board to the mentor, RealJS’s AI tutor. A quiz and a summary close the course.
The next lesson is Write Arrow Functions.