Learn JavaScript
❯ getting_started.intro

Introduction to JavaScript

$concept

JavaScript is a high-level, dynamically typed language created by Brendan Eich in 1995 in about ten days at Netscape — originally for making web pages interactive. It escaped the browser long ago: Node.js runs it on servers, Electron and React Native build desktop and mobile apps with it, and it remains the only language browsers execute natively.

Its defining traits are first-class functions, prototype-based objects, and an event-driven concurrency model (the event loop) instead of threads. The language evolves yearly through TC39 (ES2015, ES2020, ...), so modern JavaScript looks little like its 1990s ancestor — and despite the name, it shares almost nothing with Java beyond C-style syntax.

$how it works
1

Origin

Created in 1995 for Netscape Navigator; standardized as ECMAScript (ES) with yearly releases since ES2015.

2

Runs everywhere

Every browser executes it natively; Node.js, Deno, and Bun run it on servers; Electron/React Native ship apps with it.

3

Dynamically typed, multi-paradigm

No type declarations — variables hold anything; the same language serves procedural, object-oriented, and functional styles.

4

Event-driven, not threaded

One main thread plus an event loop handling async work — concurrency through callbacks, promises, and async/await instead of threads.

$example
console.log("Hello from JavaScript!");
console.log("Runs in every browser.");
Output
Hello from JavaScript!
Runs in every browser.
1console.log writes to the developer console (browser DevTools or terminal under Node).
2Each call prints one line, so two calls produce two lines in order.
3No compilation, no setup — paste this into any browser console and it runs immediately.
$use cases
Interactive web pages — buttons, forms, animations, and live updates
Full-stack apps with Node.js on the server sharing code with the browser
Cross-platform desktop (Electron, VS Code itself) and mobile (React Native) apps
Quick automation and scripting wherever a JS runtime is already installed

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Classic DSA interview booksThe reference books interviewers themselves learned from — great next to the visualizers.See the books

Practice what you learned

Re-implement each visualized algorithm in JavaScript yourself — building beats watching.