Changes

Jump to: navigation, search

Introducing JavaScript Variables

9 bytes added, 13:25, 30 May 2007
no edit summary
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 word 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 the content of the variable whenever necessary (hence the name ''variable'').
Variables are assigned and manipulated using operators which will be covered in a later chapter[[JavaScript Operators]]. At this stage it is important to understand one operator in particular - the assignment operator.
== Variable Declaration and the Assignment Operator ==

Navigation menu