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."

function checkPassword(password) { if (password == "12345") { alert("The password is correct"); } else { alert("The password is not correct"); } }

Javascript
Generate More

Want to kickstart your project?Use the new AI Studio to create your code