Last active
January 7, 2017 18:01
-
-
Save JustinDFuller/a14fcc037f9f6d88a9746c6ac160302f to your computer and use it in GitHub Desktop.
Console Formatting
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
console.log('This will format a %s then the number %i, then the object %o, then the floating point number %.2f', | |
"String", | |
5, | |
{ name: "Justin"}, | |
5.5855 | |
); | |
// Outputs: | |
// "This will format a String then the number 5, then the object Objectname: "Justin"__proto__: Object, then the floating point number 5.5855" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment