var tester = hasNumber("hello"); function hasNumber(myString) { return /ell/.test(myString); }