title: Javascript How to return an array with odd numbers
body: <p>I'm trying to return an array of numbers</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>    function numbers(l, r) {
        // l and r are any given numbers
        var x=[];
        var i=l;
        while(x.push(i++)&lt;r){};
        return x;        
      }
  
  
  console.log(numbers(10, 19));</code></pre>
  </div>
  </div>
  </p>
  
  <p>So far so good. Now I want to get the odd numbers. How can I achieve that?</p>