Created
May 28, 2013 17:31
-
-
Save minitech/5664515 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. | |
var isSafe = function(input) { | |
return /^\d+([.e]\d+)?$/.test(input); | |
}; | |
var input = '1e' + magnitude; | |
isSafe(input) && typeof eval(input) !== 'number'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
var magnitude = 123,
eval = function() {
return "";
};