XM
Size: a a a
XM
M
АЗ
XM
M
XM
M
console.time("Time this");
for (var i = 0; i < 10000; i++) {
// Your stuff here
}
console.timeEnd("Time this");XM
MP
MP
M
const t0 = performance.now();
doSomething();
const t1 = performance.now();
console.log(Call to doSomething took ${t1 - t0} milliseconds.);XM
const t0 = performance.now();
for (let i = 0; i < 150000000; i++){
let a = i / i;
}
const t1 = performance.now();
console.log(t1, t0);
XM
XM
XM
XM
MP
XM
var counter = 10;
var myFunction = function() {
counter *= 10;
setTimeout(myFunction, counter);
}
setTimeout(myFunction, counter);
XM
MP