title: Returning String from if statement in forEach loop is undefined
body: <p>in this code, I used a forEach loop inside the function to iterate over the arrays at the bottom. Basically, if the array contains the string June, I should return &quot;Summer Break! else return, &quot;Have a great day.&quot; My only restriction for this exercise, is to not use a variable to store the result I am returning.</p>
  <p>I think my issue lies somewhere in the return sections of the if/else statements. From the console I get undefined. Is it because a forEach loop returns undefined? What would you use as a suggestion? Filter? A for loop? While loop?</p>
  <p>Any tools in the future I can use to diagnose this?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function holidayDays(arr) {
  
    arr.forEach(function(items) {
      if (items === "June") {
        return "Summer Break!";
      } else {
        if (items !== "June")
          return "Have a great day!";
      }
  
    });
  
  }
  
  
  // Uncomment these to check your work!
  const months = ["April", "May", "June", "October"];
  const animals = ["Cats", "Dogs", "Pigs"];
  console.log(holidayDays(months)); // should return: "Happy Halloween"
  console.log(holidayDays(animals)); // should return: "Have a great day!"</code></pre>
  </div>
  </div>
  </p>