gosha gosha

Generation

generate functionSun, 12 Feb 2023

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();

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant