Better yet, turn magic numbers into constant variables whose name becomes the comment. Of course, comments can also provide additional context :)
const ONE_HOUR_IN_MS = 3600000
const RESEND_DELAY = 3600000
const RESEND_DELAY_MS = ONE_HOUR_IN_MS;
const RESEND_DELAY_MS = 1 * 60 * 60 * 1000; // one hour
const ONE_HOUR_IN_MS = 3600000 const RESEND_DELAY = ONE_HOUR_IN_MS
const RESEND_DELAY_MS = 3600000; // because TTL in Agora
const RESEND_DELAY_MS = 3600*1000; // because TTL in Agora
Easier to check for the right number of zeros
const ONE_HOUR = 3600000;
const RESEND_DELAY_MS = 2.5 * ONE_HOUR; // because TTL in Agora
IMO it makes it easier for successor to fiddle with.
Better yet, turn magic numbers into constant variables whose name becomes the comment. Of course, comments can also provide additional context :)