What is the benefit of using console.log
vs console.info
?
Or any of the other console commands for that matter?
console.info(\"info\")
Visually, No difference actually among console.log
, console.info
, console.warn
, as well as console.error
regarding the server side(terminal).
However, there are lightweight modules that add blue, orange and red colors for console.info
, console.warn
, as well as console.error
respectively . By that, console API behaves like client-side.
npm i console-info console-warn console-error --save-dev;