I don't understand error reason | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I don't understand error reason

I am making a modification fore some game now and there is an error and I don't understand what causes this error. This error happens also in sololearn sandbox https://code.sololearn.com/W4IMgXz6yUWQ/?ref=app

11th May 2020, 5:26 PM
Владимир Ильичленин
Владимир Ильичленин - avatar
3 Answers
+ 2
In line 13 you wrote pt.liquid instead of pt.liquids.
11th May 2020, 5:40 PM
Manu_1-9-8-5
Manu_1-9-8-5 - avatar
+ 1
Line 13: pt.liquid is wrong ;-) pt.liquids is correct You just got it wrong the name of object Correct: console.log(pt.liquids[c][c2].liquid); Wrong: console.log(pt.liquid[c][c2].liquid);
11th May 2020, 5:56 PM
LoCoding
LoCoding - avatar
+ 1
Thanks everyone. I wasn't noticing it 20 minutes
11th May 2020, 5:58 PM
Владимир Ильичленин
Владимир Ильичленин - avatar