gosha gosha

Generation

generate functionSun, 12 Feb 2023

The password is entered through the prompt. If the password is incorrect, block the website and say "the password is incorrect." If the password is correct, then "the password is correct."

function checkPassword(){ let password = prompt("please enter your password"); if(password === "123456"){ alert("the password is correct"); }else{ alert("the password is incorrect"); } } checkPassword()

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant