JavaScript Variable

Js Varibale

Variable is used to store values and work with values in the computation. The declaration of variable begins with a keyword var varible_name=values.

The variable type determined based on the value that is assigned to the variable. Take a look the following variable declaration and assignment, and their data types.

Figure 1.1 Variable and Its Value

Scroll to Top