So I have this:
new Date().getMilliseconds();
however, on occasion this just yields just 1 or 2 digits, instead of 3.
So I tried using:
new Date().getMilliseconds().toFixed(3);
so that it always is 3 digits, but this seems to always yield 000
, and I don't know why. Anyone know how to do this right?