title: if condition on node js
body: <p>I'm Getting confused </p>
  
  <p>I tried to have to have a two condition, in the first code I'm getting <code>true</code> answer seems the answer should be <code>false</code>.</p>
  
  <pre><code>var a = 'route 3';
  if(a === 'route 1' || 'route 2'){
    console.log('true')
  }else{
    console.log('false')
  }
  </code></pre>
  
  <p>on the second code, I have two conditions and the first condition it seems <code>true</code> and the second must be <code>false</code> but i'm getting <code>true</code> answer.
  base on my understanding if the first condition is <code>false</code> the second condition will not be evaluated. can you enlighten my newbie mind why i'm getting <code>true</code> answered. </p>
  
  <pre><code>var a = 'route 1';
  var b = 'route 3';
  
  if(a === 'route 1' || 'route 2' &amp;&amp; b === 'route 1' || 'route 2'){
    console.log('true')
  }else{
    console.log('false')
  }
  </code></pre>
  
  <p>thank you for the answer :)</p>