en.javascript.info/1-js/02-first-steps/10-ifelse/1-if-zero-string/solution.md
Ilya Kantor 9ad9063d00 up
2016-11-28 21:35:42 +03:00

12 lines
186 B
Markdown

**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' );
}
```