title: Finding a specific character in an array
body: <p>So let's say I have an array that looks like this:</p>
  
  <pre><code>weather = ["sun", "clouds", "rain", "hail", "snow"]
  </code></pre>
  
  <p>And I want to find and display all of the strings which have the letter "s" in them. This is what I think I should do...</p>
  
  <pre><code>for(var i = 0; i &lt; weather.length; i++)
  {
      if(weather[i].indexOf('s') != -1)
      {
          alert(weather);
      }
  }
  </code></pre>
  
  <p>But that just displays all of the weather strings as many times as there are strings with the letter "s" in them. (It will just alert: "sun, clouds, rain, hail, snow" 3 times)</p>
  
  <p>How do I get it to alert just the specific names of the weather which contain the letter "s"?</p>