How to calculate to total milliseconds of one week in JavaScript

1 Answer

0 votes
const millisecondsInAWeek = 1000 * 60 * 60 * 24 * 7;

console.log(millisecondsInAWeek);

  
  
  
  
/*
run:
  
604800000
  
*/

 



answered Apr 7, 2022 by avibootz
...