Course Banner


JavaScript Variable

A variable\'s purpose is to store information so that it can be used later. A variable is a symbolic name that represents some data that you set

JavaScript variables can be used to hold values (x=5) or expressions (z=x+y).

var a=30;

Variable names must begin with a letter

Variable names can also begin with $ and _ (but we will not use it)

Variable names are case sensitive (y and Y are different variables)