title: if(false) vs if(undefined) in conditional statement
body: <p>I will like to know which will be more appropriate to use while writing a conditional statement in javascript</p>
  
  <pre><code>if(false){}
  </code></pre>
  
  <p>or </p>
  
  <pre><code>if(undefined){} 
  </code></pre>
  
  <p>Also I know <code>if(undefined)</code> will be converted to false is javascript</p>
  
  <p><strong>Background</strong></p>
  
  <p>I have a function &amp; an object like this</p>
  
  <pre><code>var obj ={}
  var someFunc = function(a){
       obj = {
           key1:true,
           key2:a, // i will like to have it as a?true:false
           key3: !a
      }
  </code></pre>
  
  <p>I am calling the function like this</p>
  
  <pre><code>someFunc(true);
  </code></pre>
  
  <p>if I call like this <code>someFunc()</code> , without passing the argument , then <code>key2</code> will be undefined.</p>
  
  <p>later I want to use this key in conditional statement</p>
  
  <pre><code>if(obj.key2){
  
  }
  </code></pre>
  
  <p>As mentioned I know if <code>obj.key2</code> is undefined, it will be coerced as <code>if(false)</code>. </p>