From this section we shall learn about the Debugging in JavaScript.
For debugging, it's critical to log all application errors and warnings. The log messages that serve other functions will also come in handy while you are debugging, because they can supply context when something goes wrong.
During development, it's often useful to log debug messages to investigate specific issues. In those scenarios, it's useful to log: