Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q365

Feedback on: irt.org FAQ Knowledge Base Q365

Sent by David Antonini on October 23, 2002 at 12:05:02: - feedback #4234

Worth:
Worth reading

Comments:
With the second method, to be able to use arrays of more than 10x10 elements, you can code it that way :
a=new Array()
a["0,0"]=1
a["0,1"]=2
...
a["20,12"]=3

And then to get the value of element x,y (integers) you get it this way:
valuexy=a[x+","+y]
for instance
(a[20+","+12]==3) vaudra true.



Sent by omer on Wednesday May 28, 2008 at 09:11:58 - feedback #5275

Worth:
Worth reading

Length:
Too short

Technical:
Not technical enough

Comments:
another way to declare an associated array is:

var myarray = {books:[]};

myarray.books = {it:"JavaScript4Dummies", Culture:"American Hegemony"};






©2018 Martin Webb