Variables
From CodeStuff
Revision as of 07:47, 2 February 2012 by Lerc (Talk | contribs) (Created page with "Variables are used in programming to hold values. In JavaScript you make a variable with <tt>var</tt>. <edcode> var x; print("the value of x is:"+x); </edcode> Putting a val...")
Variables are used in programming to hold values. In JavaScript you make a variable with var.
Putting a value into a variable is easy, just use =.
You can make a variable and give it a value all in one line
Using JavaScript, you can place any value into a variable,
When I said "any value" I really meant it. Watch this one.