Created
June 2, 2015 21:18
-
-
Save jonsherrard/da7e1fca71875d3871d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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