Hi,
I was looking at some code snippets online and sometime I saw stuff such as :
var arrayName = new Array()
arrayName[Date] = 'aasdfasdfsdf';
Its an easy way of indexing dates that are associated with a string (such as a calendar) or something but that create HUGE arrays.
Does JS treat arrays differently than other programming languages so that this doesn't use a lot of ressources or will it just create a huge array in memory just as in any other languages?
Thanks,
I was looking at some code snippets online and sometime I saw stuff such as :
var arrayName = new Array()
arrayName[Date] = 'aasdfasdfsdf';
Its an easy way of indexing dates that are associated with a string (such as a calendar) or something but that create HUGE arrays.
Does JS treat arrays differently than other programming languages so that this doesn't use a lot of ressources or will it just create a huge array in memory just as in any other languages?
Thanks,