I want to convert a duration of time, i.e., number of seconds to colon-separated time string (hh:mm:ss)
I found some useful answers here but they all talk about conv
There's a new method for strings on the block: padStart
const str = '5'; str.padStart(2, '0'); // 05
Here is a sample use case: YouTube durations in 4 lines of JavaScript