28. ES modules and clean JavaScript habits

Lesson 28

ES modules and clean JavaScript habits

Unlock this lesson

Create a free account, then buy the course to open every lesson.

What you will learn in this lesson

  • What an ES module is.
  • How to share code between files with export and import.
  • Why a module page needs type="module".
  • How to start a local server with npx -y serve.
  • A few habits that keep JavaScript clean.

60 minutes Lesson 28 of 30

Everything in Web Foundations

  • 30 step-by-step lessons
  • 3 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account