Skip to content

Instantly share code, notes, and snippets.

@simple17
Last active December 13, 2023 10:40
Show Gist options
  • Save simple17/4b7781c7c257769e44d39df6fb340af1 to your computer and use it in GitHub Desktop.
Save simple17/4b7781c7c257769e44d39df6fb340af1 to your computer and use it in GitHub Desktop.
[console methods] #js
// count time
console.time("Loop timer")
for(i = 0; i < 10000; i++){
// Some code here
}
console.timeEnd("Loop timer")
//group
console.group("My message group");
console.log("Test2!");
console.log("Test2!");
console.log("Test2!");
console.groupEnd()
//table
var person1 = {name: "Weirdo", age : "-23", hobby: "singing"}
var person2 = {name: "SomeName", age : "Infinity", hobby: "programming"}
console.table({person1, person2})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment