Variables
Let’s learn about variables in JavaScript.
We'll cover the following...
What is a variable?
In general, a variable refers to anything that can vary. In JavaScript, a variable stores the data value that can be changed later on. We can use the reserved keyword var
to declare a variable in JavaScript.
There are two types of variables:
- With static variables, each variable and expression type is already known at compile