"One.com"Javascript interview questions

JavaScript

function hasANumber(value) {
    return /^.*[0-9]*.*$/.test(value);
}