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

31st Oct 2018, 3:07 PM
Adrian Stubergh Stensrud
Adrian Stubergh Stensrud - avatar
4 Réponses
+ 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
31st Oct 2018, 3:50 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
+ 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
31st Oct 2018, 3:32 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
+ 1
Well that's not what my profile says.. weird. Anyways I inserted it now.
31st Oct 2018, 3:39 PM
Adrian Stubergh Stensrud
Adrian Stubergh Stensrud - avatar
+ 1
Ahh, thanks!
31st Oct 2018, 3:57 PM
Adrian Stubergh Stensrud
Adrian Stubergh Stensrud - avatar