var users = prompt('how are you');
var password =prompt('please enter password');
if (users == "admin" && password == 1234){
password
alert('login')
}
else if (users != "admin" || password !== 1234){
alert('The username or password is incorrect')
}
//// ternery block
(users == "admin") ?
password = prompt('please enter password') : alert ('userName incorrect');
(password == 1234) ? alert(' Login was successful') : alert('password incorrect')
// // swuitch block
// var password = prompt('please enter password');
switch(true){
case (users !== "admin" || password !== "1234" ) :
alert("The username or password is incorrect");
break;
case (password == "1234") :
alert("login");
break;
}