What is the benefit of using console.log
vs console.info
?
Or any of the other console commands for that matter?
console.info(info);
console.error(error);
console.warn(warn);
vs
console.log(log);
I thought it might change the color of the output or concatenate some sort of label, but they seem to all do the same thing. And according to the documentation here:
https://nodejs.org/api/console.html#console_console_info_data
they seem to all do the same as console.log