gosha gosha

Generation

generate functionSun, 12 Feb 2023

The password is entered through the prompt. If the password is incorrect, then "the password is not correct." If it is correct, then "the password is correct."

const password = "Password"; let confirm = prompt("Please enter the password"); if (confirm != password) { alert("The password is not correct"); } else { alert("The password is correct"); }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant