Duration Notation
One of the things that comes up pretty frequently in JavaScript are time spans. Animations, request timeouts, debounce delays, and throttles all need time spans to be specified. They come up quite frequently, but are—almost as often—inscrutable.
Don't believe me?
How long is 360000?
How about 3600000?
Did you have to count the number of zeros?
...and then do some mental math to try to figure out how much time is meant?
It's exactly these sorts of issues that lead to buggy behavior, where a 30 second timeout could turn into 3 seconds as easily as 5 minutes.
Fortunately there are a few techniques that can make time spans much easier to work with.
