Javascript

Topic: JS Variables

What is a JavaScript Variables?

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

Variable can have short names (like x and y) or more descriptive names (age, sum, totalvolume). 

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)

Browse random answers: