So, I found a function in Stack Overflow a few days ago and I'm trying to understand it because I want to adapt it and apply it to my project. It's a function by Murplyx and it's in the 3rd answer of this question: find the time left in a setTimeout()?
My doubtfulness instantly begins when I start reading the function. The first statement is var id, started, remaining = delay, running
. What does this mean? Also, why don't any of the statements have a semicolon at the end? The last question is probably dumb but I've always been advised use semicolons because otherwise it wouldn't work.