How to Use `console.error` for Debugging in JavaScript

1 min read

Always we have been using console.log but if your console.error under the catch block you can able to see the error in error mode in your developer console
Instead of
console.log(‘error’)
Use
console.error(‘error’)
use this in your console to see the difference in
0
Subscribe to my newsletter
Read articles from Navin Kumar S directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
