JavaScript 1 – Idiot Test

Faith is learning Javascript, the only thing that is protecting her from hackers is luck.

Let’s look at the javascript:

It seems that this function is taking the variable x and if x equals cookies you passed the mission.

If you are wondering how the text you enter into the textbox gets to this function examine these two lines of code:

This first it declaring an input box with an id=”pass”. The second line of code uses javascript to find the value inside the textbox with the getElementById method and passes it to the check method.

Now if you enter in cookies for your answer you will pass to the next stage.