DEV Community

Discussion on: Which JS loop is fast?

Collapse
 
smac89 profile image
smac89

Next time you want to do timings in JS, instead of manually calculating the time, just use console.time(label) and it's companion console.timeEnd(label).

See docs: developer.mozilla.org/en-US/docs/W...

Collapse
 
shubhamtiwari909 profile image
Shubham Tiwari

Thank you i will use it