Jump to content

array problems


Recommended Posts

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.





Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...