اینم جواب مسئله که گفتین اجرا گرفتم همش اجرا شد
var name=prompt("whos there?");
if(name=="other"){
alert("idont now");
}if(name=="cancle"){
alert("cancled");
}if (name=="Admin"){
var password=prompt("password?");
if (password=="themaster"){
alert("wellcome to 7learn");
}
if(password=="other"){
alert("wrong password");
}
else if (password=="cancle"){
alert("cncled");
}
}