Skip to content

Instantly share code, notes, and snippets.

View iendjinn's full-sized avatar
🤔
Coding

Ivan iendjinn

🤔
Coding
View GitHub Profile
@iendjinn
iendjinn / codetest.js
Last active February 13, 2017 13:16 — forked from TobyEalden/codetest.js
/*
what are the performance issues with this code?
*/
let smallAreas = 0;
let largeAreas = 0;
for (let r = 0; r < 100; r++) {
const pi = calcPiOneMillionPlaces();
if (r < 50) {
smallAreas += pi * r * r;