LCI Learning

Share on Facebook

Share on Twitter

Share on LinkedIn

Share on Email

Share More

Parthasarathi Loganathan (Advocate)     29 October 2010

Have a Surprise



Copy and paste this scriptt in the address bar of your PC and see the output………….


javascriptt:function flood(n){if (self.moveBy){for (i = 50; i >0;i=i-2){for (j = n; j > 0; j=j-2){self.moveBy( 1,i );self. moveBy(i,0);self.moveBy( 0,-i);self. moveBy(-i, 0);}}}}flood(6);{var inp = " ~***~ nahtanagoL ihtarasahtraP sruoY~***~ SEHSIW ILAWID ECNAVDA ";var outp = "";for(i = 0; i <= inp.length; i++) {outp =inp.charAt (i) + outp;}alert(outp);};reverse


And Press Enter...

HAVE A SURPRISE.
 



Learning

 2 Replies

Sarvesh Kumar Sharma Advocate (Advocacy)     30 October 2010

sir,

good evening!

i have try but fail.

wht is surprise?

plz. explain.

Parthasarathi Loganathan (Advocate)     31 October 2010

Simple.... Copy the above scriptt starting from "Javascriptt......reverse' and paste on your address bar. And press Enter, it will never fail


Leave a reply

Your are not logged in . Please login to post replies

Click here to Login / Register