title: nested loop pattern add some strings
body: <p>can  everyone help  me to find pseudocode of this code, because I want to output of the code :</p>
  
  <pre><code>1****
  12***
  123**
  1234*
  12345
  </code></pre>
  
  <p>I want to have the stars on the output without spread syntax or magic,</p>
  
  <p>the below code I wrote  here only print without the stars:</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>var num = 5;
  
  for(var i = 1 ; i &lt;= num ; i++){
         var str = "";
    for(var j = 1 ; j &lt;= i ; j++){
            str += j
    };
    console.log(str)
  };</code></pre>
  </div>
  </div>
  </p>