Re: 3d array in javascript
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: 3d array in javascript

From: Randy Webb <HikksNotAtHome@aol.com>
Date: Tue Apr 18 2006 - 14:21:34 CEST

RobG said the following on 4/18/2006 1:57 AM:

<snip>

> A two dimension array 2x3:
> var a = [
> ['A', 'B', 'C'],
> ['D', 'E', 'F']
> ];

I think that Rob knows, without reading further, what this post says but
a is not a "two dimension array" as it is a simple array that has arrays
as members. Javascript arrays are linear in fashion and as such you
can't have multi-dimensional arrays.

Sorry Rob, but I had to post for posterity sake :)

-- 
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Received on Mon May 1 05:06:13 2006