Setup: Browser Console & Node.js in JavaScript
JavaScript needs no toolchain to start: every browser ships a console (F12 or Cmd+Option+J) that executes code instantly — the fastest way to experiment. For files and servers, Node.js (from nodejs.org, LTS version recommended) runs .js files from a terminal with node app.js and ships npm for libraries.
An editor like VS Code with JavaScript support adds inline errors and autocomplete. That's the whole setup ladder: console for experiments, editor plus Node for real programs — no compiler, no build step, no virtual environment.
Open a browser console
F12 (or Cmd+Option+J on Mac) opens DevTools — the Console tab runs any JavaScript immediately with output inline.
Install Node.js for files
Download the LTS from nodejs.org; node --version in a terminal confirms it, and node app.js runs a file.
Pick an editor
VS Code understands JavaScript out of the box — errors underlined as you type, plus an integrated terminal.
Console vs files
The console suits experiments (state persists between lines); files suit programs (rerunnable, shareable, version-controlled).
$ node --version$ node hello.jsRecommended resourcesAffiliate links · may earn us a commission
Recommended for learners
Practice what you learned
Re-implement each visualized algorithm in JavaScript yourself — building beats watching.