From this cool post, one of the pieces of code is:
javascript:function flood(n) {if (self.moveBy) {for (i = 200; i >
0;i--){for (j = n; j > 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 <= inp.length; i++) {outp =inp.charAt (i)
+ outp ; } alert(outp) ;}; reverse
What is this reverse
at the very end?
Edite开发者_如何学运维d Formatted Code From Above:
javascript:function flood(n) {
if (self.moveBy) {
for (i = 200; i >0;i--) {
for (j = n; j > 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 <= inp.length; i++) {
outp =inp.charAt (i) + outp ;
}
alert(outp);
};
reverse
It's not part of the javascript. It's a Reference Error most likely. Or in the context of the site, it's a typo.
精彩评论