File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
1-js/02-first-steps/11-logical-operators/9-check-login Expand file tree Collapse file tree 1 file changed +10
-10
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 (" Ким бул ?" , ' ' );
55
6- if (userName === ' Admin ' ) {
6+ if (userName === ' Админ ' ) {
77
8- let pass = prompt (' Password ?' , ' ' );
8+ let pass = prompt (' Сырсөз ?' , ' ' );
99
10- if (pass === ' TheMaster ' ) {
11- alert ( ' Welcome !' );
10+ if (pass === ' Башчымын ' ) {
11+ alert ( ' Кош келиңиз !' );
1212 } else if (pass === ' ' || pass === null ) {
13- alert ( ' Canceled ' );
13+ alert ( ' Жокко чыгарылды ' );
1414 } else {
15- alert ( ' Wrong password ' );
15+ alert ( ' Туура эмес сырсөз ' );
1616 }
1717
1818} else if (userName === ' ' || userName === null ) {
19- alert ( ' Canceled ' );
19+ alert ( ' Жокко чыгарылды ' );
2020} else {
21- alert ( " I don't know you " );
21+ alert ( " Мен сизди билбейм " );
2222}
2323```
2424
25- Note the vertical indents inside the ` if ` blocks. They are technically not required, but make the code more readable .
25+ ` if ` блокторунун ичиндеги вертикалдык чегинүүлөрүнө көңүл буруңуз. Алар техникалык жактан талап кылынбайт, бирок кодду окууга ыңгайлуу кылат .
You can’t perform that action at this time.
0 commit comments