Web Programming Primer

-Lesson 21-

Variables: The Fundamentals of Programming






Variables are like place holders, they just hold the place of something else. To initialize a variable, you must start off by typing
"var" followed by the name of your new variable. ("var x")
After that, type an equal sign ("=") and what the variable will be followed by a ";".
The "=" is an assignment operator.
Code is case sensitive. Variables must start with a letter or underscore.


There are different types of variables: numbers, text (strings), bool, null.