Skip to content

Instantly share code, notes, and snippets.

@JustinDFuller
Last active January 7, 2017 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JustinDFuller/a14fcc037f9f6d88a9746c6ac160302f to your computer and use it in GitHub Desktop.
Save JustinDFuller/a14fcc037f9f6d88a9746c6ac160302f to your computer and use it in GitHub Desktop.
Console Formatting
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