I have two variables that are counting the amount of times two functions are being run. I was wondering whether there is anyway I could work out a percentage from these and then display it on the page?

for example

var win = 10;
var lose = 10;

percentage would be 50% but unsure how to do this with javascript?