• Cours
  • Compilateur de code
  • Discuter
  • Tarification
  • Équipes
Menu
+ 2

Why is this wrong😭

https://code.sololearn.com/Wtz2IG2qgwYB/?ref=app

audiojspiano
11th Apr 2022, 10:10 AM
Chris
2 Réponses
+ 2
If you run this in SoloLearn app then you'd need to wrap that code in a "load" event handler https://www.sololearn.com/post/90825/?ref=app
11th Apr 2022, 10:29 AM
Ipang
0
Just wrap your code in- window.onload = () => function { ... }
11th Apr 2022, 12:37 PM
Arnav Gumber
Arnav Gumber - avatar

Vous avez souvent des questions comme celle-ci ?

Apprenez de maniĂšre plus efficace, gratuitement :

  • Introduction Ă  Python

    7.1M apprenants

  • Introduction Ă  Java

    4.7M apprenants

  • Introduction Ă  C

    1.5M apprenants

  • Introduction Ă  HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
How my gradient is so mess I code in vscode and copied here to ask some questions please help me with this one too
1 Votes
HELP ME LEARN
1 Votes
Please tell me about methods
1 Votes
Does anyone know how to go to another "page" on the same page using the HTML button tag?
2 Votes
I am beginner in CS, how I learn C++?
0 Votes
Can I learn both graphic design and web development at the same time?
0 Votes
How do i learn php in here?
1 Votes
Hi everyone I hope you’re well
0 Votes
Running of python or js script (backend) and entering of html page by clicking SUBMIT button
2 Votes
Inserting Images
1 Votes