Skip to content

Commit 7c8e1e7

Browse files
authored
Update task.md
1 parent 45d33d9 commit 7c8e1e7

File tree

1 file changed

+11
-11
lines changed
  • 1-js/02-first-steps/11-logical-operators/9-check-login

1 file changed

+11
-11
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
importance: 3
1+
маанилүүлүк: 3
22

33
---
44

5-
# Check the login
5+
# Логинди текшериңиз
66

7-
Write the code which asks for a login with `prompt`.
7+
Логинди `prompt` менен сураган кодду жазыңыз.
88

9-
If the visitor enters `"Admin"`, then `prompt` for a password, if the input is an empty line or `key:Esc` -- show "Canceled", if it's another string -- then show "I don't know you".
9+
Эгерде келүүчү `Админ` киргизсе, анда `prompt` менен сырсөздү киргизүүгө сунуш кылыңыз. Эгерде бош сап киргизилсе же `key:Esc` басылса -- "Жокко чыгарылды" көрсөтүңүз. Эгерде башка сап киргизилсе - анда "Мен сизди тааныбайм" көрсөтүңүз.
1010

11-
The password is checked as follows:
11+
Сырсөз төмөнкүдөй текшерилет:
1212

13-
- If it equals "TheMaster", then show "Welcome!",
14-
- Another string -- show "Wrong password",
15-
- For an empty string or cancelled input, show "Canceled"
13+
- Эгер ал "Башчымын" менен барабар болсо, анда "Кош келиңиз!" көрсөтүңүз,
14+
- Башка сап болсо -- "Туура эмес сырсөз" көрсөтүңүз,
15+
- Бош сап же жокко чыгарылган киргизүү үчүн "Жокко чыгарылды" көрсөтүңүз.
1616

17-
The schema:
17+
Схемасы:
1818

1919
![](ifelse_task.svg)
2020

21-
Please use nested `if` blocks. Mind the overall readability of the code.
21+
Сураныч, камтылган `if` блокторун колдонуңуз. Коддун жалпы окулушуна көңүл буруңуз.
2222

23-
Hint: passing an empty input to a prompt returns an empty string `''`. Pressing `key:ESC` during a prompt returns `null`.
23+
Кеңешме: сурамга бош киргизүүнү өткөрүү бош сапты `''` кайтарат. Сурам учурунда `key:ESC` басылганда `null` кайтарылат.
2424

2525
[demo]

0 commit comments

Comments
 (0)