title: How to Reverse a for loop?
body: <p>I want to reverse the stars from (smallest to biggest) to (Biggest to smallest)    </p>
  
  <pre><code>  function seethestars1() {
          for (var i = 0; i &lt;= 10; i++) {
              for (var j = 0; j &lt; i; j++) {
                  document.getElementById("emptytext2").value += "*";
              }
              document.getElementById("emptytext2").value += "\n";
          }
      }
  
   &lt;textarea id="emptytext2" name="S2"&gt;
  
   &lt;input id="emptytext3" type="button" value="Click for the stars" onclick ="seethestars1()" /&gt;
  </code></pre>