+ 2

Why won’t this work?

why won’t the code work? https://code.sololearn.com/WK01P7pWV8fd/?ref=app

22nd Aug 2023, 11:09 PM
Defying Gravity
Defying Gravity - avatar
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.
23rd Aug 2023, 3:04 AM
ODLNT
ODLNT - avatar