When running JSLint, I encountered the following error message:
Issue identified at line 11 character 33: Please use the array literal notation [] instead.
var myArray = new Array();
What exactly is the array literal notation and what's the reason behind JSLint recommending its usage over the current method?
I see no problem with using new Array();
here... Am I overlooking something?