How to convert seconds to milliseconds in JavaScript

1 Answer

0 votes
const seconds = 3; 
const milliseconds = seconds * 1000;

console.log(milliseconds);

  
  
  
  
/*
run:
  
3000
  
*/

 



answered Apr 7, 2022 by avibootz
...