The password is entered through the prompt. If the password is incorrect, delete the body and say "the password is incorrect." If the password is correct, then "the password is correct."
function getPassword() { let password = prompt("Please enter your password: "); if (password != "123") { return "The password is incorrect."; } else { return "The password is correct."; } }