String evaluated as Numeric

http://stackoverflow.com/questions/38275539/why-is-my-function-returning-true-when-a-string-is-passed

by Joe Donahue

JavaScript

function isNumeric(val){
    var patt =  new RegExp('^[0-9]+$');
    //return (patt.test(val) );
    return Math.floor(val) !== val;
}
alert(isNumeric("Hello")); //Returns true??