I've been having some trouble with my code. I can't seem to get a while loop to countdown seconds. How many zeros do you have to have at the end of a number to get 1 second?
var Time = Math.floor((Math.random() * 1500000) + 500000); // trying to make this use seconds not whatever it uses /\
console.log(Time / 100000);
//defining a random variable
while (Time >= 0) {
if (Time == 0) {
document.write("done");
}
Time--;
}