title: How to split words using javascript
body: <p>This might be a simple question but, how do i split words... for example</p>
  
  <pre><code>a = "even, test"
  </code></pre>
  
  <p>I have used <code>.split</code> to seperate the text with space.</p>
  
  <p>so the result came is like</p>
  
  <pre><code>a = "even,"
  b = "test"
  </code></pre>
  
  <p>But, how do I remove the 'comma' here?</p>
  
  <p>But in some conditions it might get "even test" and in some conditions i might get "even, test". All are dynamic, so how do i check it for both?</p>
  
  <p>Thanks</p>