Skip to content

Instantly share code, notes, and snippets.

@dannycroft
Created December 4, 2011 20:16
Show Gist options
  • Save dannycroft/1431163 to your computer and use it in GitHub Desktop.
Save dannycroft/1431163 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
var foo = 10;
var bar = 16;
var total = foo + bar;
console.log("If I add %d to %d I get %d", foo, bar, total);
console.debug("If I add %d to %d I get %d", foo, bar, total);
console.info("If I add %d to %d I get %d", foo, bar, total);
console.warn("If I add %d to %d I get %d", foo, bar, total);
console.error("If I add %d to %d I get %d", foo, bar, total);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment