title: How To Get First Word In The String
body: <p>Answers on the web relates to other programming languages. I have done many searches but none seems to work. I'm looking for per title.</p>
  
  <pre><code>var str = ["bob, b", "the, d", "builder, e", "can", "he", "fix", "it" ]
  str.match(/^(\w+)/) // Uncaught TypeError: str.match is not a function
  </code></pre>
  
  <p>I have tried to look at <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions" rel="nofollow">this</a> but....I'm still learning and my not be using it correctly.</p>
  
  <p>How do I return only <code>bob</code> and not <code>bob, b</code>?</p>