Difference between revisions of "Introducing JavaScript Variables"

From Techotopia
Jump to: navigation, search
(New page: Variables are a key element of just about every programming language ever invented, and just like other programming langauges, an understanding of the basics of JavaScript variables is key...)
 
Line 1: Line 1:
 
Variables are a key element of just about every programming language ever invented, and just like other programming langauges, an understanding of the basics of JavaScript variables is key to learning this scripting langauge.
 
Variables are a key element of just about every programming language ever invented, and just like other programming langauges, an understanding of the basics of JavaScript variables is key to learning this scripting langauge.
 +
 +
Variables are nothing more than a way to store information in memory. A variable can be a number, a single character, a string of characters making up a work or sentence, or a value indicating whether something is true or false. In JavaScript you declare a variable by giving it a name and assigning a value to it. You can then access this data at any time and, more importantly, change either the content of the variable whenever necessary (hence the name ''variable'').

Revision as of 17:44, 11 April 2007

Variables are a key element of just about every programming language ever invented, and just like other programming langauges, an understanding of the basics of JavaScript variables is key to learning this scripting langauge.

Variables are nothing more than a way to store information in memory. A variable can be a number, a single character, a string of characters making up a work or sentence, or a value indicating whether something is true or false. In JavaScript you declare a variable by giving it a name and assigning a value to it. You can then access this data at any time and, more importantly, change either the content of the variable whenever necessary (hence the name variable).