Tuesday, July 28, 2009

javascripts and maps

since java script contains no Maps, well use an object instead with dynamic properties.


var test = new Object();
test['tada'] = 'yada';

alert(test['yada']);
alert(test.yada);

No comments:

Post a Comment