<HTML>
<SCRIPT LANGUAGE="JavaScript">
<!--
function populateArray(table) {
table.A=46;
table.B=23;
table["B"]=14;
table["C"]=15;
}
function displayArray(table) {
document.write(table['A']," A.<BR>");
document.write(table['B']," B.<BR>");
document.write(table.B," B.<BR>");
document.write(table.C," pairs of C.");
}
var myArray = new Array();
populateArray(myArray);
displayArray(myArray);
-->
</SCRIPT>
</HTML>
|