title: JavaScript string count loop misunderstanding
body: <p>I am having trouble with a basic task. I need to write a JavaScript program that contains an array of at least five strings, loops through the array, and calls a function for each item; this function should check to see how long the string is:</p>
  
  <ul>
  <li>If the string is less than four characters, print the phrase "Less Than Four"</li>
  <li>If equal to four characters, print "Exactly Four"</li>
  <li>If longer than four, print "More Than Four"</li>
  </ul>
  
  <p>I have tried so many things, but feel like I am looking in the wrong spots. I understand this is basic but I cant seem to wrap my head around this...</p>
  
  <p>My Code right now:</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>var colors = ["teal", "violet", "silver", "green", "red", "purple"];
  var count;
  
  for (count = 0; count &lt; colors.length; count++) {
    console.log(colors[count]);
  }
  
  if (colors &gt; 4) {
    console.log("greater than 4");
  }
  
  if (colors &lt; 4) {
    console.log("less than 4");
  }
  
  if (colors = 4) {
    console.log("is equal to 4");
  }</code></pre>
  </div>
  </div>
  </p>