title: Can I simplify this conditional statement, which uses the logical negation operator?
body: <p>Sorry if this is a "Logical Operators 101" kind of question. I've been staring at my screen for 15 minutes trying to wrap my head around it, but I'm stuck.</p>
  
  <p>Is there a more concise/elegant way to phrase the following (this is JavaScript syntax, but it's not a language-dependent question):</p>
  
  <pre><code>if (!something &amp;&amp; !something_else) {
    // do something
  }
  </code></pre>
  
  <p>Based on some experimentation, this does not appear to be the logical equivalent:</p>
  
  <pre><code>if (!(something &amp;&amp; something_else) {
    // do something
  }
  </code></pre>
  
  <p>In addition, can anyone recommend an online resource(s) for further study on questions like these? I'm assuming that this type of thing is covered on an abstract level in computer science curricula, and it's an essential gap in my programming knowledge that I'd really like to fill. Thanks!</p>