Jump to content

hexadecimal to string


Jeevan25
 Share

Recommended Posts

this is a javascript code:

<script language="JavaScript" type="text/javascript">var i,y,x="ab";y='';for(i=0;i<x.length;i+=2){y=y + unescape('%'+x.substr(i,2));}document.write(y);</script>

i believe that would output «.now when i browse the source code via a browser, i don't see the string but rather the hexadecimal code. i want to see the actual converted string that is stored in variable y. how do i do this? i dont know anything about javascript. pls help and thanks. ps: a challange from friend and wouldn't tell me the answer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...