BASIC METHODS

document.write() - writes part of an html page

document.write("hello");
document.write("<br>hello<br>");
{variable_x="hello": document.write(variable_x)};

ADVANCED METHODS

Math.random() - generates a random number from 0 - .9999
variable_x=Math.random();
variable_x=Math.floor(Math.random());
variable_x=Math.ceil(Math.random()*6);
new Array() - creates a group of variables identified by unique numbers.
To construct an array:
variable_x=new Array();
variable_x=new Array(1, 2, 3, 4);
variable_x=new Array("hello", "goodbye", "buenos dias");
see objects for usage