How to debug your app using logging in frontend and server environments
console
methods that work in both frontend and server environments:
console.log()
- For general information and debugging outputconsole.warn()
- For warnings that don’t break functionality but need attentionconsole.error()
- For unexpected errors that break functionality for your app’s users