Skip to content

Instantly share code, notes, and snippets.

@Victoryerz
Last active July 23, 2019 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Victoryerz/02dcf5fb77c0c66d60f970071e2f4083 to your computer and use it in GitHub Desktop.
Save Victoryerz/02dcf5fb77c0c66d60f970071e2f4083 to your computer and use it in GitHub Desktop.
function Count(start, end) {
out = [];
out.push(start);
Omg = function omg(anything) {
return anything;
};
var NewStart = Omg(start);
function retry() {
NewStart++;
out.push(NewStart);
if (NewStart < end) {
retry();
};
}
retry();
return out;
}
console.log(Count(3, 4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment