Re: too strict ! : new Array(5)
- --- In email@example.com, "montago_2004" <mdk@...> wrote:
>new Array does not do what you think it does. Part of JSLint's mission
> JSLINT is too strict !
> var a = new Array(5);
> creates an empty array of length 5.
> what the heck is wrong with that code ?
> if i need an empty array then I'm forced to use
> var a = [,,,,];
> then what do i do, if i need to create a dynamic, variable length,
> empty array ???
is to help you discover where your reasonable expectations about
if you do not understand what the language actually does. Use .