0

[PROBLEM] JS needs to be moved to script tag in Sololearn Web

When I run someones code, and it has a lot of javascript, Or when I run my codes that have alot of javascript, Or code that has DOM. It doesn't seem to work, An error in the console either says thisFunction() is not defined or (for DOM) Cannot set atributes of none This leads me to believe that the javascript is not run in the Head section, but rather at the end of the code, This is a simple fix by just changing the location of the script src. Thanks

20th Feb 2022, 2:11 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
4 ответов
+ 1
Gurseerit Singh Chahal Post link to code so everyone can review your statement.
20th Feb 2022, 11:50 PM
Ipang
0
Ipang this is abt sololearn external js, we can't change the location of that
20th Feb 2022, 7:27 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar
20th Feb 2022, 2:16 PM
Ipang