"Cannot set 0 of undefined" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

"Cannot set 0 of undefined"

Can someone help fix this error? I don't get it, I HAVE defined it. It's let i=0 and let j=0. I don't get this. https://code.sololearn.com/WkPVSx6Q7Qra/?ref=app

26th Jun 2020, 11:22 AM
Clueless Coder
Clueless Coder - avatar
1 Answer
0
you'll also need to initialize the elements of box_arr as an array.
26th Jun 2020, 12:03 PM
Taste
Taste - avatar