Skip to content

Instantly share code, notes, and snippets.

@minitech
Last active December 17, 2015 19:59
Show Gist options
  • Save minitech/5664692 to your computer and use it in GitHub Desktop.
Save minitech/5664692 to your computer and use it in GitHub Desktop.
// 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;
@LightStyle
Copy link

var magnitude = "1",
eval = function() {
return '';
}
Why do I believe this is not the right way to do it? lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment