+ 2

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
5 odpowiedzi
+ 3
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
+ 6
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
+ 1
Really 🥺 thanks 👍
13th Jul 2025, 7:48 PM
iam savage
iam savage - avatar
0
Idk use chatgpt or somethn
14th Jul 2025, 11:51 AM
LardMan
LardMan - avatar