var enteruser = prompt("Please enter you user name");
var user = "Admin";
var password = "TheMaster";
if(enteruser===user){
var enterpassword = prompt("Wellcome back Admin... please enter your password");
if(enterpassword===password){
alert("You have logged in successfully")
}else{
alert("That's wrong password...")
}
}else{
alert("OOps...I think some things went wrong...")
}
سلام استاد من این تمرینو از روش if,else حل کردم اما میخواستم بدونم میشه از روش ?: هم حل کرد؟