Reference an Array by index
<HTML> <HEAD> <SCRIPT language="JavaScript"> <!-- var car= new Array() car["cool"]="M"; car["small"]="B"; car["long"]="S"; //--> </SCRIPT> </HEAD> <BODY> <H2>List of Cars:</H2> <SCRIPT language="JavaScript"> <!-- document.write(car["cool"]+"<BR>"); document.write(car["small"]+"<BR>"); document.write(car["long"]); //--> </SCRIPT> </BODY> </HTML>