File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
1-js/02-first-steps/11-logical-operators/9-check-login Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 11
22
33``` js run demo
4- let userName = prompt (" Who's there ?" , ' ' );
4+ let userName = prompt (" Kas čia ?" , ' ' );
55
66if (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 .
You can’t perform that action at this time.
0 commit comments