+ 2
Why wonât this work?
why wonât the code work? https://code.sololearn.com/WK01P7pWV8fd/?ref=app
1 Answer
+ 2
The Sololearn editor considers line 37 '</script>' as the end of your JavaScript code. You can avoid this by escaping the less than and slash characters - '\<\/script>' or using concatenation '<' + '/script>'. Either way will resolve the issue.