Feedback on: irt.org FAQ Knowledge Base Q365
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.
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"};