Definition, Meaning & Synonyms
var
keyword
vahr
Definition
A keyword used in programming languages to declare a variable.
Examples
- In JavaScript, you can create a variable by using the keyword
var:var age = 25; - Using
varallows you to store values that can change later in your program. - The
varkeyword is often compared toletandconstfor variable declaration.
Meaning
It is short for ‘variable’ and is commonly used in languages like JavaScript to define a reusable storage location for data.
Synonyms
- variable
- identifier
- storage location
