IT lexicon › Programming › Variable

Variable

Programming På svenska → Updated: 2026-05-24

Named storage location holding a value — the most fundamental building block in nearly all programming languages.

Typed languages (Rust, TypeScript, Java) require the type to be declared or inferred. Untyped/dynamic languages (Python, JS) let variables change type. Modern terminology: let/const (block scope) vs var (function scope). In functional languages, "variables" are usually immutable bindings, not mutable storage.

← Back to the lexicon