DEV Community

Discussion on: Create a Stopwatch in JavaScript

Collapse
 
saraswat_dev profile image
Saraswat Majumder

Why did you use a string inside settimeout ? setTimeout(timer,1) works too

Collapse
 
gspteck profile image
GSPTeck

I just decided to use that at the time, but yeah that works too.