Ask coding questions

← Back to all posts
I have a script where I don't know what language it's written in, please help.
tampermonkey335

s = ''
a = '1112031584'
for (i = 1; i < length(a) ; i++) {
if (a[i] % 2 == a[i-1] % 2) {
s += max(a[i], a[i-1])
}
}
goto_url('www.multisoft.se/' + s)

Voters
tampermonkey335
Comments
hotnewtop
JonDoeBeep

javascript

ANDREWVOSS

Almost certainly javascript

CosmicBear

It's probably javascript

ch1ck3n

the syntax looks like javascript