DEV Community

Discussion on: Use console.log() like a pro

Collapse
 
stegriff profile image
Ste Griffiths

Great post!

I'd add that you can console.log a few things, separated with commas, and they will come out with their "native" formatting instead of the dev tools trying to change them to strings. Sometimes this is better than using the string substitutions, and it's better than concatenating them with +

Example: Example

Collapse
 
denicmarko profile image
Marko Denic

Great addition. Thank you, @stegriff .