Skip to content

Instantly share code, notes, and snippets.

@mmalecki
Created November 13, 2012 17:59
Show Gist options
  • Save mmalecki/4067326 to your computer and use it in GitHub Desktop.
Save mmalecki/4067326 to your computer and use it in GitHub Desktop.
Differences between multiple arguments of `console.log` and concatenating strings
var b = new Buffer('Hello, world');
console.log('buffer: ' + b);
console.log('buffer:', b);
/* Output:
buffer: Hello, world
buffer: <Buffer 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64>
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment