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: RobG <rgqld@iinet.net.au>
Date: Tue Apr 18 2006 - 15:31:35 CEST

Randy Webb wrote:
> 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 :)

That's fine. Others may say that a is a 2D array (matrix) that is
constructed using 2 one-dimensional JavaScript Array objects. :-)

-- 
Rob
Received on Mon May 1 05:06:26 2006