lib/questions.js
// Check if ID is entered and equals a Number
Check if ID is entered and equals a Number
Check if ID is entered and equals a Number
function requireNumber(value) {
                if (/\d/.test(value)) {
                  return true;
                }
                return 'Employee ID must be a Number!';
            }
function requireNumber ( value ) { if ( / \d / . test ( value ) ) { return true ; } return 'Employee ID must be a Number!' ; }
Check if ID is entered and equals a Number
Check if ID is entered and equals a Number