Technically, console.log console.debug and console.info identical. However, the way the data is displayed is slightly different
console.log Text in black without an icon
console.info Blue colored text with an icon
console.debug Pure black text
console.warn Yellow colored text with an icon
console.error Red colored text with an icon
var playerOne = 120; var playerTwo = 130; var playerThree = 140; var playerFour = 150; var playerFive = 160; console.log("Console.log" + " " + playerOne); console.debug("Console.debug" + " " +playerTwo); console.warn("Console.warn" + " " + playerThree); console.info("Console.info" + " " + playerFour); console.error("Console.error" + " " + playerFive);

Prabhakar Apr 01 '16 at 11:19 2016-04-01 11:19
source share