Table of contents
No headings in the article.
- console.log() - For general information logging
console.assert() - if the first argument is false then information logged in console.
console.error() - logs error message
console.trace() - outputs whole stack trace
console.time - console has several time APIs.
console.time() - console.time('timer_1') - timer_1 is started
console.timeEnd() - Stops the specified timer and logs the elapsed time in ms.
console.timeLog() - Logs the value of the specified timer.