Added a benchmark for JS

This commit is contained in:
2026-04-12 08:55:15 +10:00
parent 24e5d8081c
commit b0d9c15d33

View File

@@ -0,0 +1,18 @@
for (let counter = 1; counter <= 10000; counter++) {
let result = "";
if (counter % 3 == 0) {
result += "fizz";
}
if (counter % 5 == 0) {
result += "buzz";
}
if (result != "") {
console.log(result);
}
else {
console.log(counter);
}
}