Skip to content

Commit bffa68d

Browse files
authored
Translated solution.md
1 parent b040cb7 commit bffa68d

File tree

1 file changed

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

1 file changed

+8
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11

22

33
```js run demo
4-
let userName = prompt("Who's there?", '');
4+
let userName = prompt("Kas čia?", '');
55

66
if (userName == 'Admin') {
77

8-
let pass = prompt('Password?', '');
8+
let pass = prompt('Slaptažodis?', '');
99

1010
if (pass == 'TheMaster') {
11-
alert( 'Welcome!' );
11+
alert( 'Sveiki!' );
1212
} else if (pass == '' || pass == null) {
13-
alert( 'Canceled' );
13+
alert( 'Atšaukta' );
1414
} else {
15-
alert( 'Wrong password' );
15+
alert( 'Neteisingas slaptažodis' );
1616
}
1717

1818
} else if (userName == '' || userName == null) {
19-
alert( 'Canceled' );
19+
alert( 'Atšaukta' );
2020
} else {
21-
alert( "I don't know you" );
21+
alert( "Aš jūsų nepažįstu" );
2222
}
2323
```
2424

25-
Note the vertical indents inside the `if` blocks. They are technically not required, but make the code more readable.
25+
Atkreipkite dėmesį į vertikalius įgilėjimus viduje `if` rinkinio. Techniškai jie nėra būtini, bet jie paverčia kodą lengviau skaitomu.

0 commit comments

Comments
 (0)