text: /*************************************
   * logger(array)
   *
   * - Accepts an array
   * - Logs every element of the array
   ************************************/
  
  const logger = array => array.forEach(element => console.log(element));
  
  // for (i = 0 ; i < logger.length; i++) {
  //     console.log(logger[i]);
  // }
  
  /*************************************
   * 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 = temperatures =>
    temperatures.map(temp => (temp - 32) * (5 / 9));
  
  /**************************************
   * hottestDays(temperatures, threshhold)
   *
   * - Accepts an array of temperatures
   * - Accepts a threshhold temperature
   * - Returns an array of temperatures
   *   that exceed the threshhold
   ***************************************/
  const hottestDays = (temperatures, threshhold) =>
    temperatures.filter(temperature => temperature > threshhold);
  
  /******************************************
   * 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 = (temperatures, threshhold) => {
    let hotday = hottestDays(temperatures, threshhold);
    let cel = toCelsius(hotday);
  
    logger(cel);
  };
  
  export { logger, toCelsius, hottestDays, logHottestDays };
  