Let’s take a look at a challenge.
When a prompt window pops up, type something and then click on the “OK” button.
Right-click on the page and select the “View Page Source” option to analyze the source code.
Press on “CTRL + F” and search for the “prompt()” method.
As you can see in the screenshot, the prompt() method saves the user input to a variable and then compares it to the default password value (9b3e2f54cc). If the user input and the default password value match, then the webpage will have grand access.
Copy the default password value and submit it into the password field of the prompt window to pass the challenge.