0
TypeError: undefined is not an object (evaluating 'array[sq] = p+r') at Line: 59
what is hapening? JUST CHECK ONLY PROGRAM ( WHY IS THIS CAP)
3 Respostas
0
my program says its not an object, but i made an array containing other arrays. and these arrays contain x and y of all their blocks, (they are rectangle-like shapes made from rectangles).
0
yeah, i made a program that make rectangles on a grid
0
I believe your problem is you used the length of the array to determine the element. The length of an array is the last index plus one. So use arName.length - 1.
Also, you can insert codes
and edit your questions