0

Pls what's wrong with my simple code? It won't run no matter what😢🤷

<script type="text/javascript"> <!-- function sayHello() { alert("Hello World") } //--> </script> <script type="text/javascript"> <!-- document.write("Hello World") //--> </script> <input type="button" onclick="sayHello()" value="Say Hello" />

21st Feb 2020, 9:22 PM
Abdulazeez Muhammed
Abdulazeez Muhammed - avatar
1 Answer
+ 1
I think it works. You should delete the comment tags. https://code.sololearn.com/W1HlNNi6Sryu/?ref=app
21st Feb 2020, 10:02 PM
dozule
dozule - avatar