0
Failed execution
I wrote a code and ran it on code studio it worked perfectly but when I run it it Sololearn the js code won't work
3 ответов
+ 5
iam savage
The problem is likely to get solved by wrapping your entire js code within(just a guess):
window.onload = () => {
// Here js code
}
Or you may have used local storage/session storage/ or any other storage which doesn't work here, or using any library without importing it's script.
To get exact correct solution, you have to show your code.
0
https://sololearn.com/compiler-playground/WHv4JM6P5e6w/?ref=app
Click on the follow button
0
iam savage
Place the line `let fl = document.getElementById("follow")` inside the follow function, it will work.