title: How execute numbers from 1 to 10 without loop in anonymous function?
body: <p>This is function but when executes this gave me just 1.    </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(n, m) {
    // body...
    if (n &lt;= m) {
      console.log(n);
      n++;
      (n, m);
    }
  })(1, 10);</code></pre>
  </div>
  </div>
  </p>