title: Separating strings by a char after join method
body: <p>So I am just messing around with functions and creating my own to make sure I understand concepts better. I wrote out this one below and it seems to be almost there, however I have one issue.</p>
  <pre><code>function strAdd() {
      let strResult = '';
      let numResult = 0;
      for (let i=0; i &lt; arguments.length; i++) {
          if (typeof arguments[i] ===  'string') {
              let args = Array.prototype.slice.call(arguments[i])
              strResult += args.join(&quot;&quot;);
          } else if (typeof arguments[i] === 'number') {
              numResult += arguments[i];
          }
        
      }
    return console.log(`this string says ${strResult} and the numbers add up to ${numResult}`);
  }
  </code></pre>
  <p>When ever I print out the the strings, they are still being logged out as one string as opposed to separate strings so</p>
  <pre><code>strAdd('here', 10, 'are', 10, 2, 'the', 35, 'strings')
  </code></pre>
  <p>Gives me</p>
  <pre><code>this string says herearethestrings and the numbers add up to 57
  </code></pre>
  <p>Whenever I try adding different chars into the join method, all it does is separates the chars within each string by the specified char and not the string itself.
  So</p>
  <pre><code>strResult += args.join(&quot; &quot;);
  </code></pre>
  <p>would give me</p>
  <pre><code>this string says h e r ea r et h es t r i n g s and the numbers add up to 57
  </code></pre>
  <p>instead of splitting up the chars. I notice how the strings are still being joined too. Any thoughts on how I can refactor this code?</p>