Confused | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Confused

https://code.sololearn.com/WoOCdvsepc7G/?ref=app I was coding simple incremental game,it's gives me error,I looked anything but seems I can't find it Sorry I'm a beginner at website development

19th Oct 2019, 5:08 AM
prisma
prisma - avatar
2 ответов
+ 1
Put your javascript inside a window.onload function: window.onload = () => { // ... };
19th Oct 2019, 5:17 AM
Brian R
Brian R - avatar
0
Thanks for the solution
19th Oct 2019, 5:20 AM
prisma
prisma - avatar