Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c40373f

Browse files
authored
Update solution.md
1 parent d8cff2f commit c40373f

File tree

1 file changed

+3
-4
lines changed
  • 1-js/02-first-steps/11-logical-operators/4-alert-and

1 file changed

+3
-4
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
The answer: `1`, and then `undefined`.
1+
Жообу: `1`, андан кийин `undefined`.
22

33
```js run
44
alert( alert(1) && alert(2) );
55
```
66

7-
The call to `alert` returns `undefined` (it just shows a message, so there's no meaningful return).
8-
9-
Because of that, `&&` evaluates the left operand (outputs `1`), and immediately stops, because `undefined` is a falsy value. And `&&` looks for a falsy value and returns it, so it's done.
7+
`alert` чакыруусу `undefined`'ди кайтарат (ал жөн гана билдирүүнү көрсөтөт, андыктан маанилүү кайтаруу болбойт).
108

9+
Мунун себеби, `&&` сол операндды аткарат (`1` чыгарылат), жана дароо токтойт, анткени `undefined` жалган маани. Ал эми `&&` жалган маанини издейт жана аны кайтарат.

0 commit comments

Comments
 (0)