en.javascript.info/1-js/02-first-steps/11-logical-operators/8-if-question/task.md
2018-11-09 08:29:47 +01:00

16 lines
268 B
Markdown

importance: 5
---
# A question about "if"
Which of these `alert`s are going to execute?
What will the results of the expressions be inside `if(...)`?
```js
if (-1 || 0) alert( 'first' );
if (-1 && 0) alert( 'second' );
if (null || -1 && 1) alert( 'third' );
```