Last active
December 13, 2023 10:40
-
-
Save simple17/4b7781c7c257769e44d39df6fb340af1 to your computer and use it in GitHub Desktop.
[console methods] #js
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
// 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