JavaScript Console timeEnd()
JavaScript Console timeEnd()
The timeEnd() method is used for ending the timer. It will write the result to the console. It allows us to time code operations for debugging and testing purposes. It allows us to run multiple times at the same time by using label parameter i.e, separating each timer by a label. Its similar method is the console.time() Method.
Syntax:-
Its syntax is:- console.timeEnd(label)
Further Explanation:-
Parameter | Description |
label | Optional. The name of the timer. |