You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/11-logical-operators/9-check-login/task.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -2,24 +2,24 @@ importance: 3
2
2
3
3
---
4
4
5
-
# Check the login
5
+
# Patikrinti prisijungimą
6
6
7
-
Write the code which asks for a login with`prompt`.
7
+
Parašykite kodą, kuris prašo prisijungimo su`prompt`.
8
8
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".
10
10
11
-
The password is checked as follows:
11
+
Slaptažodis patikrinamas sekančiais žingsniais:
12
12
13
-
-If it equals "TheMaster", then show "Welcome!",
14
-
-Another string -- show "Wrong password",
15
-
-For an empty string or cancelled input, show "Canceled"
0 commit comments