"reverse" in JavaScript
<p>From <a href="http://www.blogohblog.com/cool-javascript-tricks/" rel="nofollow">this cool post</a>, one of the pieces of code is:</p>

<pre><code>javascript:function flood(n) {if (self.moveBy) {for (i = 200; i &gt;
0;i--){for (j = n; j &gt; 0; j--) {self.moveBy(1,i);
self.moveBy(i,0);self.moveBy(0,-i); self.moveBy(-i,0); } }
}}flood(6);{ var inp = "D-X !msagro na dah tsuj resworb rouY"; var
outp = ""; for (i = 0; i &lt;= inp.length; i++) {outp =inp.charAt (i)
+ outp ; } alert(outp) ;}; reverse
</code></pre>

<p>What is this <code>reverse</code> at the very end?</p>

<p><strong>Edited Formatted Code From Above:</strong></p>

<pre><code>javascript:function flood(n) {
  if (self.moveBy) {
    for (i = 200; i &gt;0;i--) {
      for (j = n; j &gt; 0; j--) {
        self.moveBy(1,i);
        self.moveBy(i,0);
        self.moveBy(0,-i); 
        self.moveBy(-i,0); 
      }
    }
  }
}
flood(6); 
{
  var inp = "D-X !msagro na dah tsuj resworb rouY"; 
  var outp = ""; 
  for (i = 0; i &lt;= inp.length; i++) {
    outp =inp.charAt (i) + outp ; 
  } 
  alert(outp);
}; 
reverse
</code></pre>
