Please enable JavaScript to use CodeHS

Web Development

Lesson 2.5 Using Multiple Files in JavaScript

Description

In this lesson, students learn how to better organize their HTML files by separating their scripts into a separate js file.


Objective

Students will be able to:

  • Write js files with the correct syntax
  • Properly load js files in the correct order, and explain why the order of script loading impacts usability and performance