title: Is there any flaw in using string as boolean in if statement using javascript?
body: <p>Let's say we have a string:</p>
  
  <pre><code>    strTest = "Hello! I am string going to be tested in if statement.";
  
      if (strTest) {
        document.write("I am string and I am not empty.");
      } else {
        document.write("I am string and I am empty");
      }
  </code></pre>
  
  <p><strong>Is there any flaw if we use string as Boolean value in if statement?</strong></p>