New Technologies

  • Java
  • Javascript
  • DTML
  • Dot Net
  • ASP .Net
  • C# .Net
  • PHP
Your Ad Here

Monday, December 10, 2007

HashMap in JavaScript example2

<SCRIPT LANGUAGE="JavaScript">
var map = new Object();
map['whatever'] = 1;
map['something'] = 2;
map['other'] = 3;

/*
var map = new Object();
map.whatever = 1;
map.something = 2;
map.other = 3;*/
alert(map.other);
map.other=1;
alert(map.other);
</SCRIPT>

No comments:

Your Ad Here