title: String match function returns an array, but if converted to number, returns the matched number
body: <p>Why</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>console.log(
    "test3".match(/\d/)
  );</code></pre>
  </div>
  </div>
  </p>
  
  <p>Returns an array of elements, but converting it to a number:</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>console.log(
    +"test3".match(/\d/)
  );</code></pre>
  </div>
  </div>
  </p>
  
  <p>Returns the number matched directly?</p>
  
  <p>I thought it would throw an error.</p>
  
  <p>Other thing I notice, using <code>typeof</code> before the first expression, it says "object", but even MDN says it's an Array.</p>
  
  <p>Edit: I actually didn't confuse myself with the + operator or precedance, I was confused about the conversion of the array to a number haha. Thanks!</p>