title: Return value of recursive function is 'undefined'
body: <p>Whenever I execute this snippet the console.log before return returns the array with 20 times the value 23.
  However console.log(Check(users, 0, 20)); returns only 'undefined'.</p>
  
  <p>What am I doing wrong?</p>
  
  <pre><code>var users = [23, 23, 23, 23, 23, 23, 23, 23, 23, 23];
  console.log(Check(users, 0, 20));
  
  function Check(ids, counter, limit){
      ids.push(23);
  
      // Recursion
      if (counter+1 &lt; limit){
          Check(ids, counter+1, limit);
      }
      else {
          console.log(ids);
          return ids;
      }
  }
  </code></pre>