Why wonā€™t this work? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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