# JavaScript variable

A variable is a named alias for a value that you want to use in your application.

## What is a JavaScript **variable**?

A **variable** is a named alias for a value that you
want to use in your application.

In JavaScript variables are defined with the keywords
`var`, `let` and `const` (altough the use of `var` 
has been deprecated and should be avoided)

```JavaScript
var name = 'John'; 
let age = 25;
// const cannot be changed
const email = 'john@email.com'; 
```

Level: Novice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/novice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/javascript-variable
