/    Sign up×
Community /Pin to ProfileBookmark

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 ?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@jayke00authorMay 17.2003 — ? 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 ?
Copy linkTweet thisAlerts:
@CharvilleMay 17.2003 — You are all way over my head! Good job though. The only puzzles I do are Springbok.
×

Success!

Help @jayke00 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...