controller/ProfileManager.js
/**
 * Checks if the age is invalid
 * @param {string} age 
 * @returns if age is invalid
 */
Checks if the age is invalid
@param {string} age
@returns if age is invalid
Checks if the age is invalid @param { string } age @returns if age is invalid
function invalidAge(age){
    if(age === "")
        return true;
    let intAge = parseInt(age);
    if(intAge == NaN)
        return true;
    if(intAge < 0 || intAge > 110)
        return true;
    return false;
}
function invalidAge ( age ) { if ( age === "" ) return true ; let intAge = parseInt ( age ) ; if ( intAge == NaN ) return true ; if ( intAge < 0 || intAge > 110 ) return true ; return false ; }
Checks if the age is invalid
 @param {string} age
 @returns if age is invalid
Checks if the age is invalid @param { string } age @returns if age is invalid