Skip to content

Instantly share code, notes, and snippets.

@austbot austbot/pure.js
Created Feb 17, 2018

Embed
What would you like to do?
function what(a, b) {
const c = a + b;
return (c / a) % b;
}
function whatRunner(numberOfTimes, multiplier) {
const runs = [];
for(let i = 1; i <= numberOfTimes; i++) {
runs.push(what(i, multiplier * i));
}
return runs;
}
console.log(whatRunner(100, 5));
console.log(whatRunner(100, 7));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.