0
The code snippet in my profile: why won't it recognize the indexOutput.innerHTML? Is there a bug with this app?
I have never encountered this before. https://code.sololearn.com/Wzz51i36gQZG/?ref=app
4 Antworten
+ 4
The reason for your code behavior is because SoloLearn uses JS in head tag, therefore you need to use window onload cause the DOM will in default exec before the JS:
window.onload=()=>{
//DOM functionallity here
}
https://code.sololearn.com/WuSmdfQUEZ5W/?ref=app
+ 3
There is 0 public code in your profile, you can insert your code as attachment to a post in general that is private or public
+ 1
Well that's not what my profile says.. weird. Anyways I inserted it now.
+ 1
Ahh, thanks!