Click to See Complete Forum and Search --> : JS puzzle


jayke00
05-16-2003, 08:34 PM
Hey,

Im new to JavaScript and am trying to solve the following puzzle:

<SCRIPT>

var texts = "091c53d492ce7h2";
var interpret = "";
var whatisthis = "var xorm = prompt('Enter the Answer:','');

for (x=1; x<6; x++) {interpret += (texts.indexOf(x)-1);
}

if (xorm==interpret){interpret = interpret + '.php'
;location.href=interpret;
}

else{location.href='other.php';}";

eval(whatisthis);

</SCRIPT>

I need to find what should be written in the popup. Does anyone know how i could do this?

Thanks :)

jayke00
05-17-2003, 01:04 AM
:) Im truly not trying to be dishonest, sorry if there was some confusion.

This is just a puzzle from www.mod-x.co.uk.

Its an online game that tests ones coding abilities. As I said Im new to JavaScript and was just wondering if anyone would be able to help me figure it out.

Sorry about that :)

Charville
05-17-2003, 09:31 AM
You are all way over my head! Good job though. The only puzzles I do are Springbok.