Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let lift = prompt("number");
- if (lift < 1 || lift > 9) {
- alert("wrong");
- } else if (lift == 1 || lift <= 3) {
- alert("OK1");
- } else if (lift == 7 || lift < 9) { // 4,5,6 - задовольнять умові, в ній сказано "дорівнює семи АБО менше за дев'ять"
- alert("OK");
- } else if (lift == 4 || lift <= 6) {
- let pass = prompt("Password")
- if (pass != 1337) {
- alert("It is not right");
- } else if (pass == 1377) {
- alert("GOOD");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement