title: Strict equality and loose equality with logical and operator
body: <p>Is it considered a bad practice to combine a loose equality check (foo != null) with a strict equality check (bar === true)?</p>
  
  <p>In my opinion, they should both be compared with the strict equality, or both be compared with the loose equality check.</p>
  
  <p>Is there ever a scenario where I would need to have a loose equality check combined with a strict equality check?</p>
  
  <p>Thanks Stackoverflow! </p>
  
  <p>Looking forward to your insight!</p>
  
  <pre><code>const foobar = foo != null &amp;&amp; bar === true;
  </code></pre>
  
  <p>Edit, this question differs from <a href="https://stackoverflow.com/questions/359494/which-equals-operator-vs-should-be-used-in-javascript-comparisons">Which equals operator (== vs ===) should be used in JavaScript comparisons?</a> because, this is particularly on combining a loosely equal comparison with a strict equal comparison. This stack overflow question referenced above is only in conjunction with using one or the other. </p>
  
  <p>I am particularly interested if its ever a valid use case to use both a loose equal, with a strict equal inside a comparison. </p>