I am making a Whack a Mole like Zombie themed game in Javascript. I wanted to know the accuracy in percentages, like the hits vs missed ratio in percentages. So, i used this cod