Skip to content

Instantly share code, notes, and snippets.

@jabranr jabranr/loop.js
Last active Sep 17, 2017

What would you like to do?
(Math) Generate a loop with maximum range
// Increase until a range is met then start again:
let range = 10;
let x = (x + 1) % range;
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.