Created
November 13, 2012 17:59
-
-
Save mmalecki/4067326 to your computer and use it in GitHub Desktop.
Differences between multiple arguments of `console.log` and concatenating strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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