Track The Time Of Some Of Your JS Code With Console.Time

TopicSource
๐Ÿ–ฅ๏ธ Techconsole: time() method - Web APIs - MDN

If you want to figure out which part of your code is taking so long or have another reason to check the computing time of some of your code, you can use console.time() to start a timer. Use console.timeEnd() to stop the timer, and the time passed will be printed to the console.


  1. Using console.assert to print out an assertion to the console