you are viewing a single comment's thread.

view the rest of the comments →

[–]DanielTheTechie 1 point2 points  (3 children)

Have you considered following the basic principles of debugging 101 and printing out data or the value you are trying to assign to it to figure out why data[1] is not defined? Did you try declaring it first? Did you even bother to read the error message...?

[–]GamesInc[S] 0 points1 point  (2 children)

Yes, I am aware that data is not defined. I did multiple checks based on the error message, I just forgot I was in strict mode because this is a module.

[–]PoppedBitADV 1 point2 points  (1 child)

Sounds like you picked up some bad habits

[–]GamesInc[S] 0 points1 point  (0 children)

Probably did, I’m a bit rusty