Putting JavaScript on the Web Page

Stephen Gruppetta 18 Lessons 4h 27m Updated intermediate frontend js

Say your friend Priya hosts a board game night every month, and the games change each time. You could rewrite her page by hand every month. However, the games are really just data, and a script can turn data into a page. In this course, you’ll take your first steps into the frontend, the part of an app that runs in the browser, and write JavaScript that changes what a page shows.

You’ll type along in your own editor and browser, serve your files from a local server, and practice in RealJS exercises with automated tests that check what your page shows. You’ll learn how to:

  • Try lines of JavaScript in the browser’s Console and give a page its own script
  • Serve a folder locally and load a script as a module
  • Read enough HTML and CSS to find the parts of a page your script fills
  • Switch styles by adding and removing CSS classes
  • Set an element’s text and add new elements from your script

In the project, you’ll build Priya’s game night page from an HTML file, a stylesheet and a module script. The script holds the month’s games as an array of objects, makes one list item for each game, marks the games over an hour as long, and fills the summary line in the header. Then you’ll explain your page to the mentor.

You need JavaScript basics, including loops, functions and arrays of objects, from a course like Records With Objects. HTML, CSS and the browser’s developer tools can all be new to you.

What’s Included:

  • 18 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 2 Downloadable Resources
  • Interactive Quiz to Check Your Progress
  • 5 Hands-On Coding Exercises
  • Q&A With JavaScript Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

About Stephen Gruppetta

Stephen obtained a PhD in physics and worked as a physicist in academia for over a decade before becoming a programming educator. He's constantly looking for simple ways to explain complex things.

» More about Stephen

← Browse All Courses