function findPerimeter(width, height) {
  if (isNaN(width) || isNaN(height)) {
    throw Error('One of your values is not a number');
  } else if (width <= 0 || height <= 0) {
    throw Error('You can\'t have a negative width or height');
  } else {
    const PERIMETER = (width * 2) + (height * 2);
    return PERIMETER;
  }
}
/**
 * Calculates the perimeter of a rectangle
 * @param {number} width - the width of the rectangle
 * @param {number} height  - the height of the rectangle
 * @return {number} - the perimeter of the rectangle
 */
Calculates the perimeter of a rectangle
@param {number} width - the width of the rectangle
@param {number} height  - the height of the rectangle
@return {number} - the perimeter of the rectangle
Calculates the perimeter of a rectangle @param { number } width - the width of the rectangle @param { number } height - the height of the rectangle @return { number } - the perimeter of the rectangle
function findPerimeter(width, height) {
  if (isNaN(width) || isNaN(height)) {
    throw Error('One of your values is not a number');
  } else if (width <= 0 || height <= 0) {
    throw Error('You can\'t have a negative width or height');
  } else {
    const PERIMETER = (width * 2) + (height * 2);
    return PERIMETER;
  }
}
function findPerimeter ( width , height ) { if ( isNaN ( width ) || isNaN ( height ) ) { throw Error ( 'One of your values is not a number' ) ; } else if ( width <= 0 || height <= 0 ) { throw Error ( 'You can\'t have a negative width or height' ) ; } else { const PERIMETER = ( width * 2 ) + ( height * 2 ) ; return PERIMETER ; } }
Calculates the perimeter of a rectangle
 @param {number} width - the width of the rectangle
 @param {number} height  - the height of the rectangle
 @return {number} - the perimeter of the rectangle
Calculates the perimeter of a rectangle @param { number } width - the width of the rectangle @param { number } height - the height of the rectangle @return { number } - the perimeter of the rectangle