Syntax error on Script

RPG - Dragon Repeller
<script src="dragon.js"></script> 
XP: 0 Health: 100 Gold: 50
Go to store Go to cave Fight dragon
Monster Name: Health:
Welcome to Dragon Repeller. You must defeat the dragon that is preventing people from leaving the town. You are in the town square. Where do you want to go? Use the buttons above.

Error: Your script element should have an opening tag.

Your code should look like this:

<script src="./script.js"></script>

Yeah, I realised. Thanks!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.