gosha gosha

Generation

generate functionSun, 12 Feb 2023

The password is entered through the prompt. If the password is incorrect, cover the whole website with black text and say, "The password is incorrect." If the password is correct, then "the password is correct."

function checkPassword() { var the_password = prompt("Enter the password."); if (the_password == "password") { alert("The password is correct."); } else { alert("The password is incorrect.") } }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant