Skip to content

Instantly share code, notes, and snippets.

@jonsherrard
Created June 2, 2015 21:18
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 jonsherrard/da7e1fca71875d3871d4 to your computer and use it in GitHub Desktop.
Save jonsherrard/da7e1fca71875d3871d4 to your computer and use it in GitHub Desktop.
var doorCodes = [];
for (var _i=0; _i< 100; _i++) {
if (_i%2 == 0 && _i/2 > 9) {
doorCodes.push(_i + "" + _i/2);
}
}
for (var _j=0; _j < 100; _j++) {
if (_j*2 < 100 && _j > 9) {
doorCodes.push(_j + "" + _j*2);
}
}
console.log(doorCodes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment