title: How do I compare string and boolean in Javascript?
body: <p>I got the Json <code>"false"</code> from server. I respond as <code>bool</code> but it's Json so it's in browser type is <code>String</code> instead of <code>bool</code>.</p>
  
  <p>So if I run <code>(!data)</code> whenever I want to check <code>"false" == false</code> then they not worked.</p>
  
  <p>So how can I parse <code>bool</code> from <code>String</code> in JavaScript then?</p>
  
  <p><code>"true" == true</code> and <code>"false" == false</code>. Then the code <code>(!data)</code> can check what it is [<code>true</code> and <code>false</code>]</p>