Loading video player…

Putting JavaScript on the Web Page (Overview)

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.

Download

Course Slides (.pdf)

455.1 KB
Download

Sample Code (.zip)

10.3 KB

00:00 Welcome to Putting JavaScript on the Web Page. This course is about the frontend, the part that runs in the browser. Here’s a taste: Priya’s game night page.

00:14 Priya hosts a board game night monthly, and 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.

00:28 It marks the games over an hour as long and fills the summary line.

00:34 The first section, Your Browser Workbench, covers the Console, a page’s own script and a local server. The second, HTML and CSS for Scripts, shows you the parts your script fills, like this empty list.

00:49 In the third, Changing the Page, your script sets text and adds elements. Last, in the project, you finish Priya’s page alone, and a review rounds it off. By the end, 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.

01:15 You need JavaScript basics: loops, functions, and arrays of objects. HTML, CSS and DevTools, the browser’s developer tools, can be new to you. You also need Chrome or Edge, and VS Code, which runs the course’s local server.

01:34 Text lessons are for typing along in your editor and browser, and videos show what moves. The first three sections end with an exercise in the browser, and each project step has one, all checked with Run Tests.

01:48 In the project, you explain your page to RealJS’s AI tutor. A quiz and a summary close the course.

01:56 The next lesson, Try Lines in the Console, starts on a blank tab.

Become a Member to join the conversation.