Reference an Array by index : Array : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Array »

 

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>
           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Array