Skip to content

Commit 24572f0

Browse files
committed
9-check-login finish translation
1 parent 9cd16a4 commit 24572f0

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ if (userName === 'Admin') {
2222
}
2323
```
2424

25-
Note the vertical indents inside the `if` blocks. They are technically not required, but make the code more readable.
25+
Observați indentările din interiorul blocului `if`. Acesta nu sunt neapărat necesare, dar fac codul mult mai lizibil.x

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ importance: 3
22

33
---
44

5-
# Check the login
5+
# Verificați login-ul
66

7-
Write the code which asks for a login with `prompt`.
7+
Scrieți codul care necesită logare cu `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+
Dacă vizitatorul introduce `"Admin"`, atunci `prompt` pentru o parolă, dacă inputul este gol sau `key:Esc` -- afișați "Anulat", dacă este un alt string -- afișați "Nu te cunosc".
1010

11-
The password is checked as follows:
11+
Parola este verificată după cum umrmează:
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+
- Dacă inputul este egal cu "TheMaster", atunci afișează "Welcome!",
14+
- Dacă este un alt string -- afișează "Wrong password"
15+
- Dacă este un string gol sau inputul este anulat, afișează "Canceled"
1616

17-
The schema:
17+
Schema:
1818

1919
![](ifelse_task.svg)
2020

21-
Please use nested `if` blocks. Mind the overall readability of the code.
21+
Vă rugăm folosiți blocuri `if` încorporate. Aveți în vedere lizibilitatea generală a codului.
2222

23-
Hint: passing an empty input to a prompt returns an empty string `''`. Pressing `key:ESC` during a prompt returns `null`.
23+
Sugestie: transmiterea unui input gol în timpul unui promt returnează un string gol `''`. Apăsarea tastei `key:ESC` în timpul unui promt returnează `null`.
2424

2525
[demo]

0 commit comments

Comments
 (0)