The password is entered through the prompt. If the password is incorrect, block the website and say "the password is incorrect." If the password is correct, then "the password is correct."
function pass(a, b){ var a = "code"; if(a == "code"){ return "the password is correct"; }else{ return "the password is incorrect"; } }