en.javascript.info/1-js/2-first-steps/11-ifelse/1-if-zero-string/solution.md
Ilya Kantor 88bd9889a2 work
2016-05-26 12:43:54 +03:00

186 B

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:

if ("0") {
  alert( 'Hello' );
}