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"); } }