controller/ProfileManager.js
/**
 * Checks if the weight is invalid
 * @param {string} weight 
 * @returns if weight is invalid
 */
Checks if the weight is invalid
@param {string} weight
@returns if weight is invalid
Checks if the weight is invalid @param { string } weight @returns if weight is invalid
function invalidWeight(weight){
    if(weight === "")
        return true;
    let intWeight = parseInt(weight);
    if(intWeight == NaN)
            return true;
    if(intWeight < 10 || intWeight > 300)
        return true;
    return false;
}
function invalidWeight ( weight ) { if ( weight === "" ) return true ; let intWeight = parseInt ( weight ) ; if ( intWeight == NaN ) return true ; if ( intWeight < 10 || intWeight > 300 ) return true ; return false ; }
Checks if the weight is invalid
 @param {string} weight
 @returns if weight is invalid
Checks if the weight is invalid @param { string } weight @returns if weight is invalid