The password is entered through the text if the password is incorrect, then delete body and "the password is not correct" if correct, then "the password is correct"
let input = Number(prompt("Please enter the password")); function ab(){ if (input === 123) { document.body.innerHTML = "the password is correct"; } else{ document.body.innerHTML = "the password is not correct"; } } ab();