How do you format strings in Javascript? I wrote python code and I'm trying to translate it to javascript but I'm not too sure how
Python code:
def conv(t):
return '%02d:%02d:%02d.%03d' % (
t / 1000 / 60 / 60,
t / 1000 / 60 % 60,
t / 1000 % 60 + 12,
t % 1000)
Does javascript/jquery let you do something similar to this? And if so, how?
Thanks!