title: Null values & logical operators not working
body: <p>I am trying to figure out why if I enter null values, the alert still appears when it shouldn’t. the argument states that all values must not be null otherwise the function should end.</p>
  
  <p>Does anyone have any ideas? thank you!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>@charset "UTF-8";
  /* CSS Document */
  
  body{
   height:1000px;
   width:100%;
   background:#fff;
   margin:0;
  }
  
  .divider{
   width:100%;
   height:auto;
   background:#CCC;
   display:block;
   margin:10px;
  }
  
  h2{
   font-size:16px;
   display:block;
  }
  #confirm-paragraph{}
  #global-variable-paragraph{}
  #user-input{}
  #expressions{}
  #elephant-paragraph{}
  #method-1{}
  #method-2{}
  #ml{}
  #litres{}
  #conditional-operator{}
  #cast-1{}
  #cast-2{}</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!-- Checklist: Obtain user input and store it in variables --&gt;
  &lt;!-- Report variable text to the client window --&gt;
  &lt;!-- Prompt --&gt;
  &lt;section class="divider"&gt;
  &lt;h2&gt;User Input Variables Example&lt;/h2&gt;
  &lt;button onclick="nameFunction()"&gt;Click Me&lt;/button&gt;
  &lt;p id="user-input"&gt;This text should change after clicking the button.&lt;/p&gt;
  &lt;p style="color:red; font-weight:bold"&gt;NOT WORKING Version3!!!!!!!!&lt;/p&gt;
  &lt;p&gt;Should not alert if null values are present - null values are present by just clicking OK when entering nothing. All values should not be null in order for the alert to appear&lt;/p&gt;
  &lt;script&gt;
  function nameFunction() {
   var yourforename = prompt("What is your first name?");
   var yoursurname = prompt("What is your last name?");
   var yourage = prompt("What is your age?");
  
   if (yourforename != null &amp;&amp; yoursurname != null &amp;&amp; yourage != null) {
   alert("Hello " + yourforename + " " + yoursurname + ". You are " + yourage + " years old.");
   }
  }
  &lt;/script&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>