hey guys, i need your help.
I would like to transform data from 2-D array in 1-D, but I have some problems.
The browser sholud write an array called "razpored" twice. First time it writes it step by step. With the "for-loop" I call evrey single object of an array (from razpored[0] to razpored[5]) and it happens what I think it should. The transformation is succesful and it is obvious that all objects are transformed in a row.
But at the end, I order "document.write(razpored)", so the whole array should be written, but it isn't, the objects razpored[2] and razpored[3] are missing or are undefined.
What is the reason for that.
proba.html