Skip to content

Instantly share code, notes, and snippets.

@novonimo
Created September 13, 2019 12:30
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 novonimo/b064240b3cb1d919926fa60e0cb68bd9 to your computer and use it in GitHub Desktop.
Save novonimo/b064240b3cb1d919926fa60e0cb68bd9 to your computer and use it in GitHub Desktop.
use some cool features of console in dev tool
console.log("%c Hello my name is nima", "color: orange; font-weight: bold;");
const foo = {name: "nima", age: 30};
const bar = {name: "sina", age: 28};
const baz = {name: "ahmad", age: 58};
console.table([foo, bar, baz])
console.time("looper")
let i = 0;
while (i < 100000) { i ++ }
console.timeEnd("looper")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment