Convert strings with many numbers then add all
<p>So far this code for me is working:</p>

<pre><code> var x;
 var y;
 var z;

function functionWithArgs(x, y, z) {
  console.log(x + y + parseInt(z)); // I get a sum of 6
}

functionWithArgs(1, 2, "3b");
</code></pre>

<p>But when I do this:</p>

<pre><code>  var x;
  var y;
  var z;

function functionWithArgs(x, y, z) {
  console.log(x + y + parseInt(z)); //
}

functionWithArgs(1, 2, "987b8h76");
</code></pre>

<p>I get an error message. Any suggestions please. I'm just a beginner.</p>