Sooo close no. 15 (maybe spoilers)
var a = password.charAt(9)
var c = password.charAt(4)
var b = password.charAt(10)
var d = password.charAt(7)
var f = password.charAt(6)
var e = password.charAt(1)
var g = password.charAt(3)
var i = password.charAt(0)
var h = password.charAt(8)
var j = password.charAt(13)
var l = password.charAt(5)
var k = password.charAt(6)
var m = password.charAt(11)
var o = password.charAt(12)
var n = password.charAt(2)
var riddle = "query test mess";
It's all right there and what I need to do by what I think is have it so it reads the word riddle right?
i = 4
d = 10
d= 7
l = 6
e =1
+e++i+ld+r+d+++```
Ok here is where I am stuck. The script wants chars up to a 15 letter word while 'riddle' is only '6' So how do I 'void' all the other letters? Am I going the right away about this?
something is wrong in your logic before
variables a + b + c + d + e +f + g + h + i + j + k +l + m + n + o == "query test mess"
hint: we start indexing the characters in typed password string at 0
in code variable a = password.charAt(9) or the tenth character in password string is stored in a
you need to find out what character from the riddle string this should be hint: a is supposed to equal the first character in riddle string or q, etc …
repeat for all other variables b to o.
should now have all the characters and their positions in the typed password string
Mb0742 wrote:
EDIT: Oh there are two sixes how is this meant to work?
You are having the same problem i had when i took this challenge, it is so obvious that you don't pay enough attention. Look carefully at the source code, line by line and letter by letter(you'll notice before the forth line):
password = document.password.password.value;
var a = password.charAt(9)
var c = password.charAt(4)
var b = password.charAt(10)
var d = password.charAt(7)
var f = password.charAt(6)
var e = password.charAt(1)
var g = password.charAt(3)
var i = password.charAt(0)
var h = password.charAt(8)
var j = password.charAt(13)
var l = password.charAt(5)
var k = password.charAt(6)
var m = password.charAt(11)
var o = password.charAt(12)
var n = password.charAt(2)
var riddle = "query test mess";
If number 6 is repeated maybe it's because it's the same character and doesn't need to be used twice in the plaintext…
I don't want too give any more away, just think, you'll get surprised when you notice how easy it was.
SiPoX