up
This commit is contained in:
parent
4ae129054e
commit
ab9ab64bd5
476 changed files with 3370 additions and 532 deletions
|
@ -0,0 +1,16 @@
|
|||
importance: 5
|
||||
|
||||
---
|
||||
|
||||
# A question about "if"
|
||||
|
||||
Which of these `alert`s are going to execute?
|
||||
|
||||
What will be the results of the expressions inside `if(...)`?
|
||||
|
||||
```js
|
||||
if (-1 || 0) alert( 'first' );
|
||||
if (-1 && 0) alert( 'second' );
|
||||
if (null || -1 && 1) alert( 'third' );
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue