Paste the entire script to the Chrome DevTool (F12) Console
About 2 min
Paste the entire script to the Chrome DevTool (F12) Console
console.time()
// Our test function runs a big for-loop
function test() {
let number = 0;
for (let i=0; i<999999; i++)
number += 5;
}
console.time("Test function"); // Start measuring time
test(); // Call our test function
console.timeEnd("Test function"); // stop measuring time
/*
default: 1.205810546875ms
(value may vary depnding on browser, etc.)
*/
Ab↓⏐CaB⏐↑cD
Each snippet is defined under a snippet name and has a prefix, body and description.
The prefix is what is used to trigger the snippet and the body will be expanded and inserted.
Possible variables are: $1
, $2
for tab stops, $0
for the final cursor position, and ${1:label}
, ${2:another}
for placeholders.