Use of console.time() and console.timeEnd() method in javascript
Sometimes we wonder about some code, we have just written, how it is performing. In JavaScript, we have a console object. This console object can provide you answer on performance. Console object has two methods named as time() and timeEnd(). These two methods take requires a string argument, which will name of the timer. It is generally used at the time of testing the code. Below is the syntax: For Example, We want to test a portion of a code…
0
Read More