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 - 17:32:36 CEST

RobG said the following on 4/18/2006 9:31 AM:
> 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. :-)
>

Tis true, but VK might say that "RobG says JS has a multi-dimensional
array" <shudder> <g>

-- 
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Light humor is good for the soul every now and then.
Received on Mon May 1 05:06:50 2006