Welcome to Putting JavaScript on the Web Page. This course is about the frontend, the part of an app that runs in the browser.
Along the way, you’ll build a page for Priya’s monthly board game night. The games change each time, so instead of rewriting the page, your script builds it from the games as data. It makes one list item for each game, marks the games over an hour as long, and fills the summary line.
What You’ll Learn
The course has five sections:
- Your Browser Workbench: try lines in the Console, give a page its own script, and serve it from a local server.
- HTML and CSS for Scripts: learn enough of both to find the parts of the page your script fills, like an empty games list.
- Changing the Page: have your script set text and add elements.
- Project: Priya’s Game Night Page: finish Priya’s page on your own.
- Reviewing What You’ve Learned: check what you know with a quiz, and read the summary.
By the end of this course, you’ll be able to serve a page with its own HTML, CSS and script from a local server, and have the script build part of the page from data, checking the result in the browser.
Before You Start
You need JavaScript basics: loops, functions, and arrays of objects. HTML, CSS and DevTools, the browser’s developer tools, can all be new to you.
You also need a current version of Chrome or Edge, and the VS Code editor, which runs the local server the course uses.
How the Course Works
Text lessons are for typing along in your own editor and browser, and videos show what moves. The first three sections end with an exercise, and each project step has one. In an exercise, you write code in the browser and click Run Tests to check it. In the project, you also explain your page to the mentor, RealJS’s AI tutor. A quiz and a summary close the course.
The next lesson, Try Lines in the Console, starts on a blank tab.