26th Dec 2018, 11:30 AM
th35kyb0y
th35kyb0y - avatar
5 Answers
+ 6
Add this comment above the codes //</script><script type="text/babel"> https://code.sololearn.com/W94152Jib6os/?ref=app
26th Dec 2018, 12:03 PM
CalviŐ˛
CalviŐ˛ - avatar
+ 4
This is specifically for SoloLearn code playground. Due to the design nature of code playground, it adds the codes from JS pane into head tag with <script></script> tag enclosed. Try to run the code from pc, open the dev tools to examine the codes, you would understand more. comment would be by passed and ignored by JS execution, but it would be parsed by HTML.
26th Dec 2018, 12:18 PM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
Just cut the JS part of the code and paste it in between script tag below div tag 😊
26th Dec 2018, 11:37 AM
deeyae
deeyae - avatar
+ 2
ok sir... thank you ❤️
26th Dec 2018, 12:19 PM
th35kyb0y
th35kyb0y - avatar