Last active
December 17, 2015 19:59
-
-
Save minitech/5664692 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); | |
}; | |
if(typeof magnitude === 'string') { | |
var input = '1e' + magnitude; | |
isSafe(input) && typeof eval(input) !== 'number'; | |
} else false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
var magnitude = "1",
eval = function() {
return '';
}
Why do I believe this is not the right way to do it? lol