+ 2

Why cant js find the element altought it exitsts ? (Dom problem)

Hey there, im working on a factory game for the sololearn Community and at line 282 the dom element can't find the lable although it exists This part of the code generates the middle of the iron ores Can someone pls look for the Problem ? https://code.sololearn.com/WpmvhhM81Y2o/?ref=app

17th Mar 2023, 9:55 PM
Shiko
Shiko - avatar
2 Answers
+ 2
You should use label_id instead and you missed a "r" in backgroundColor. Btw, the for loop condition should use "<" instead of "<=".
17th Mar 2023, 11:44 PM
Lochard
Lochard - avatar
0
Hey, your project is great. Can you plz plz plz give me an overview of how it works. Please đŸ„ș.
25th Mar 2023, 10:12 AM
Harman Maan
Harman Maan - avatar