Created
May 28, 2013 17:22
-
-
Save minitech/5664436 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Put anything here to make the final assertion true. | |
function isSafe(input) { | |
return /^\d+([.e]\d+)?$/.test(input); | |
} | |
isSafe(input) && typeof eval(input) !== 'number' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
input = 12
eval = function() { return ''; }