Posts Tagged ‘variable’

The Scope of Variables

Wednesday, April 30th, 2008

The scope of a variable is the extent of the code in which the variable exists. For JavaScript variables defined within a function their scope is the function that they are defined in. Variables defined outside of functions as well as variables used without being first defined have global scope.

The Scope of Variables

Order of Operations

Wednesday, October 17th, 2007

Following on from identifying what the numerical operators are in JavaScript, the next tutorial looks at how JavaScript decides which order to perform them in when you include multiple operators in the same statement.

Operating on Variables

Tuesday, October 16th, 2007

With the tutorials on JavaScript operators out of the way, it is time to start looking at how to operate on those variables in order to very their values. The seventh web page in my series of tutorials on variables and operators looks at the numerical operators.

Operating on Variables

ASCII and Unicode

Monday, October 15th, 2007

Earlier in the year I was asked to write a book on JavaScript for beginners. I had done preliminary draft versions of several chapters before realising that there was just no way that I had the time to actually be able to develop the material into a usable book. A lot of the material that I had written is suitable for use as web pages (since the main difficulty was trying to rewrite all of the material to fit together properly and as web pages each piece can stand alone).

The most developed chapter was the one introducing JavaScript variables and operators. I published the first part of the chapter on several web pages a couple of months ago. Now I have added the next part which starts with a description of how javaScript can work with both ASCII and Unicode.

ASCII and Unicode