Apologies for the, what I'm sure is a very rooky question, but I don't do much in Javascript!
I need to conditionally display the word 'mile' or 'miles' depending on whether the variable is '1' or more than 1.
I currently have:
document.getElementById('distance').innerHTML = "You are " +...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.