RadarTrek
Home/Glossary/Variable
Programming Foundations

Variable

A named container that holds a value your program can read and change.

Reviewed by the RadarTrek editorial team · June 2026

A variable is a label attached to a value stored in memory — a number, a piece of text, a list, anything. Giving data a name lets your code refer to it repeatedly, reassign it, and reason about what it represents, instead of hard-coding the same value over and over.

Why it matters

  • Every program, in every language, is built from variables holding and transforming data.
  • Clear variable names are one of the cheapest ways to make code easier for humans to read.
  • Understanding variables is the very first step before functions, conditionals, or loops make sense.

Where to learn this

🎓

Variables

Think Like a Programmer course

This is the exact lesson that covers this term in depth — with examples, diagrams, and a hands-on exercise.

Related terms

RadarTrek Intel — monthly score updates

We track 40+ tools so you don't have to. Score changes, new tools, and new guides — once a month, no spam.