Hi,
Just wanted to know if anyone could help me in figuring out how to check if the health var is below zero så that it displays, “you killed the monster” when reaches below 0 and not the next time you press attack
https://js.do/KristianFriis/battle
All pointers are welcome though