title: Javascript group words in an array with the same starting character
body: <p>i'm currently studying javascript and i have problem trying to figure out how to handle this problem:</p>
  
  <p>i have an array of words with special question mark like this </p>
  
  <blockquote>
    <p>wordsArray = ["why", "would", "you", "pay", "for", "a", "phone", "?"];</p>
  </blockquote>
  
  <p>I'm trying to group words with the same starting character in the same seperate group of array
  Example output would be:</p>
  
  <pre><code>firstArray = ["why", "would"] //&lt;- all start with w
  secondArray = ["you"]
  thirdArray = ["pay", "phone"]//&lt;- all start with p
  fourthArray = ["for"]
  fifthArray = ["a"] 
  finalArray = ["?"]//&lt;- special character like ?, :,.. in the same group
  </code></pre>
  
  <p>How do i achieve this ?
  i miswrited this and the question look like i'm asking for codes but i'm actually asking for a solution how to solve this (logic wise)</p>