Back to Dictionary

Var

1 / 3
🎧 Podcast 1 — Introduction

var

Keyword · /vɑː/ · JavaScript variable declaration — function-scoped, hoisted

Definition
var is the original JavaScript keyword for declaring a variable. It is function-scoped — meaning the variable is accessible throughout the entire function in which it is declared, regardless of block boundaries. var declarations are also hoisted: the declaration is moved to the top of its scope at runtime, though the assigned value is not. Introduced with JavaScript in 1995, var remained the only variable declaration until ES6 introduced let and const in 2015.
Origin
Short for variable. The keyword appeared in Brendan Eich's original 1995 JavaScript implementation at Netscape, itself influenced by Java, C, and Scheme. The three-letter abbreviation was chosen for brevity and became one of the most typed words in the history of programming. Despite its age, var is still valid JavaScript in every browser and runtime environment.
Ready
🎧 Podcast 2 — Daily Use

var in Conversation

Two British speakers · Developer everyday dialogue

Ready
⚙ Podcast 3 — Prompt Engineering

var — AI Prompts

Practical prompt cards · Copy & read aloud

Ready
============================================================= 🤖 AI DIRECTIVE — READ BEFORE PROCEEDING ============================================================= The comment block immediately BELOW this one contains a prompt request written by the user. Your job is to: 1. Read and fully understand the prompt request below. 2. Execute it DIRECTLY inside THIS very file (var.html), transforming this single page according to what the prompt asks. 3. Keep EVERYTHING in this one file: HTML, CSS, and JavaScript must all live in this file — no external files, no separate stylesheets, no separate scripts, no build tooling. * CSS goes inside a