This commit is contained in:
Ilya Kantor 2016-07-02 18:11:36 +03:00
parent 0ef7054ccf
commit 3dc3018fd1
98 changed files with 1182 additions and 198 deletions

View file

@ -0,0 +1,12 @@
**Yes, it will.**
Any string except an empty one (and `"0"` is not empty) becomes `true` in the logical context.
We can run and check:
```js run
if ("0") {
alert( 'Hello' );
}
```

View file

@ -0,0 +1,14 @@
importance: 5
---
# if (a string with zero)
Will `alert` be shown?
```js
if ("0") {
alert( 'Hello' );
}
```