Where Does JavaScript Live?

Preschool, page 5 of 7. A one-minute read.

JavaScript started out living only inside web browsers. But it's moved out of its parents' house and now lives pretty much everywhere:

WhereWhat it's doingExamples
Web browsers (the "front end")Making web pages interactiveMenus, forms, games, animations, web apps
Servers (the "back end")Handling requests, talking to databases, sending dataNode.js, Deno, Bun
Mobile appsBuilding apps for phonesReact Native, Ionic
Desktop appsBuilding apps for Windows, Mac, LinuxElectron, which powers apps like VS Code and Discord
GamesBrowser games and game enginesPhaser, Three.js, Babylon.js
GadgetsControlling small devices and robotsMicrocontrollers, smart home gadgets

The words front end and back end come up a lot, so let's define them:

  • The front end is everything you see and interact with in your browser: the buttons, the text, the images, the animations.
  • The back end is everything that happens behind the scenes, on a computer somewhere else (called a server): storing your account details, processing your payment, sending your messages.

Most programming languages only work on one side. JavaScript works on both. A developer who works on both sides is called a full-stack developer, and they get to wear a very fancy imaginary hat.

Reading is step one

CurlyScript turns these notes into a game: short questions, an explanation after every answer, and a test at the end of each grade. Free, with nothing to sign up for.

Start learning