4 ms·
I recommend simply using console.debug, console.log, console.warn, and console.error, which differentiate for you.
by CGamesPlay 14y ago
I recommend simply using console.debug, console.log, console.warn, and console.error, which differentiate for you.
- cristiantincu 14y agoWhat about `console.info()`? Or is it a bit too adventurous?
- jaredmcateer 14y agoinfo and log are indistinguishable, at least in Chrome.
- cristiantincu 14y agoYes. So much about differentiation.
- jQueryIsAwesome 14y agoMaybe add console.assert to that list: console.assert(str.length === 10, "String is not 10 characters long!"); and console.group/groupEnd console.group("sums"); console.log(1 + 1); console.log(2 - 3); console.groupEnd();