tag:blogger.com,1999:blog-8980734269859237005.post5894526925761519663..comments2024-01-30T01:03:21.768-08:00Comments on DevCurry: MultiDimensional Array in JavaScriptSuprotim Agarwalhttp://www.blogger.com/profile/08349831623922214390noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8980734269859237005.post-27442339737553337672010-09-03T10:08:13.434-07:002010-09-03T10:08:13.434-07:00Thanks Elijah. I have made a small comment in the ...Thanks Elijah. I have made a small comment in the post mentioning that.<br /><br />Any reason why is this way of declaring an array preferred?Suprotim Agarwalhttps://www.blogger.com/profile/08349831623922214390noreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-82574575730781785762010-09-03T08:55:23.292-07:002010-09-03T08:55:23.292-07:00Douglas Crockford recommends using the [] syntax t...Douglas Crockford recommends using the [] syntax to create new Arrays. <br /><br />You could change the above code to look something like the following instead <br /><br />var arrOfArr = [[], [], []];<br /><br /><a href="http://jsfiddle.net/Hv4Py/" rel="nofollow">http://jsfiddle.net/Hv4Py/</a>Anonymoushttps://www.blogger.com/profile/14667340517136058696noreply@blogger.com