title: Javascript How would i get the percentage of 2 numbers?
body: <p>I am trying to make an xp kind of bar with javascript and how im thinking of doing this is if the required xp number is 1000, and you start with 0 of course, i need the earned xp number (0 so far or for example you have earned 20 out of 1000) to be calculated into a percentage of the 1000 so it knows how much percent of the 1000 you have earned. not just the example 20 but every number from 0 to the required amount. Sorry this is hard to explain.</p>