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)
var name = 'John';
let age = 25;
// const cannot be changed
const email = 'john@email.com';
Level: Novice · More JavaScript terms at this level
Updated