DEV Community

loading...

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

Collapse
stegriff profile image
Stephen 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 Author

Great addition. Thank you, @stegriff .