text: /*************************************
   * logger(array)
   *
   * - Accepts an array
   * - Logs every element of the array
   ************************************/
  const logger = function (array) {
    array.forEach((element) => console.log(element));
  };
  
  /*************************************
   * toCelsius(temperatures)
   *
   * - Accepts an array of temperatures
   *   in degrees Fahrenheit
   * - Returns an array of temperatures
   *   in degrees Celsius
   *
   * The conversion is:
   *   C = (F - 32) * (5/9)
   ************************************/
  const toCelsius = function (temperatures) {
    const temp = temperatures.map((c) => (c - 32) * (5 / 9));
    return temp;
  };
  
  /**************************************
   * hottestDays(temperatures, threshhold)
   *
   * - Accepts an array of temperatures
   * - Accepts a threshhold temperature
   * - Returns an array of temperatures
   *   that exceed the threshhold
   ***************************************/
  const hottestDays = function (temperatures, threshhold) {
    const array = temperatures.filter(
      (temperatures) => temperatures > threshhold
    );
    return array;
  };
  
  /******************************************
   * logHottestDays(temperatures, threshhold)
   *
   * - Accepts an array of temperatures
   *   IN DEGREES FAHRENHEINT
   * - Accepts a threshhold temperature
   *   IN DEGREES FAHRENHEINT
   * - Logs temperatures that exceed the
   *   threshhold to the console
   *   IN DEGREES CELSIUS
   *
   * hint: you can combine
   *       all previous functions
   *******************************************/
  const logHottestDays = function (temperatures, threshhold) {
    const array = temperatures.filter(
      (temperatures) => temperatures > threshhold
    );
  
    const toCelsiusx = toCelsius(array);
    toCelsiusx.forEach((x) => console.log(x));
  };
  
  export { logger, toCelsius, hottestDays, logHottestDays };
  