title: check if condition, if statement is assigned as string variable - jquery|| javascript
body: <p>I am struggling the following issue in jQuery or java script. </p>
  
  <pre><code>var a = 5;
  var b = 6;
  var str = "" + a + "==" + b + "";//(a==b)
  if (str) {
    alert('true');
  }
  else {
     alert('false');
  }
  </code></pre>
  
  <p>This result is always true, I am new to jQuery and Javascript.</p>