What is the benefit of using console.log
vs console.info
?
Or any of the other console commands for that matter?
console.info(\"info\")
While console.log
and console.info
might not be different, there are other uses except mere coloring. For example, when using a linter like eslint, you can set console.log
to provide a warning message. Let's say you only want to use console.log
for your development purposes and use console.info
for information that end users might need. With a linter you now have a visible and direct reminder of your temporary console.log
that aid you during development, but must be removed before commits/publishing.