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

13th Jul 2025, 12:48 AM
iam savage
iam savage - avatar
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.
13th Jul 2025, 1:16 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
13th Jul 2025, 11:57 AM
iam savage
iam savage - avatar
0
iam savage Place the line `let fl = document.getElementById("follow")` inside the follow function, it will work.
13th Jul 2025, 12:02 PM
Gulshan Mahawar
Gulshan Mahawar - avatar