The boundaries and very concrete distinctions/differences that exist in C# when one is talking about arrays, lists, dictionaries, and hashtables seem a lot more blurry to me in JavaScript. Observe how one creates a hash in JavaScript:
var myArray = new Array();
myArray['one'] = 1;
myArray['two'] = 2;
myArray['three'] = 3;
No comments:
Post a Comment