Skip to content

Instantly share code, notes, and snippets.

View taufiqridha's full-sized avatar

Taufiq Ridha taufiqridha

View GitHub Profile
// time and time end
console.time("This");
let total = 0;
for (let j = 0; j < 10000; j++) {
total += j
}
console.log("Result", total);
console.timeEnd("This");
// Memory