Created
May 10, 2014 10:18
-
-
Save leonardfactory/38c9ddfa7cb75bb77bc3 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 count = 0; | |
for(var i=1;i<=100;i++){ | |
count+= (i.toString().match(/9/g) || []).length | |
} | |
console.log(count); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment