Skip to content

Commit b040cb7

Browse files
authored
Translated task.md
1 parent f8cb281 commit b040cb7

File tree

1 file changed

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

1 file changed

+10
-10
lines changed

1-js/02-first-steps/11-logical-operators/9-check-login/task.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ importance: 3
22

33
---
44

5-
# Check the login
5+
# Patikrinti prisijungimą
66

7-
Write the code which asks for a login with `prompt`.
7+
Parašykite kodą, kuris prašo prisijungimo su `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+
Jeigu lankytojas įveda `"Admin"`, tada `prompt` slaptažodžio, jeigu įvedama tuščia eilė arba paspaudžiamas `key:Esc` -- parodyti "Atšaukta", jeigu tai kitokia eilutė -- tada parodyti "Aš jūsų nežinau".
1010

11-
The password is checked as follows:
11+
Slaptažodis patikrinamas sekančiais žingsniais:
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+
- Jeigu lygus "TheMaster", parodyti "Sveiki!",
14+
- Kitokia eilutė -- parodyti "Neteisingas slaptažodis",
15+
- Tuščiai eilutei arba jeigu buvo atšauktas, parodyti "Atšauktas"
1616

17-
The schema:
17+
Diagrama:
1818

1919
![](ifelse_task.svg)
2020

21-
Please use nested `if` blocks. Mind the overall readability of the code.
21+
Prašau, naudokite įdėtinius (ang. "nested") `if` rinkinius. Prižiūrėkite skaitomumą viso kodo
2222

23-
Hint: passing an empty input to a prompt returns an empty string `''`. Pressing `key:ESC` during a prompt returns `null`.
23+
Patarimas: praleidžiant tuščią įvestį per prompt grąžina tuščią eilutę `''`. Paspaudžiant `key:ESC` per prompt grąžina `null`.
2424

2525
[demo]

0 commit comments

Comments
 (0)