More Javascript




CS174

Chris Pollett

Oct. 13, 2010

Outline

typeof, Assignments, and the Date Object

I/O

Control Statements

Objects

Arrays

More Arrays

Functions

Function Example

function swap(i, j, a)
{
	var tmp=a[i]; /* explicitly defined variables 
                         have scope within the function
                         if I had declared the variable 
                         implicitly it would have global scope */
	a[i] = a[j]; a[j] = tmp;
}

Constructors

Methods

More on the Prototype Property

Pattern Matching

Pattern Special Characters

Slash Patterns

Yet more special characters

Pattern Modifiers

More Pattern Methods