New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Why is this wrong😭
2 Answers
+ 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
0
Just wrap your code in-
window.onload = () => function {
...
}