title: Write a JavaScript conditional statement to find the sign of product of three numbers. Display an alert box with the specified sign
body: <p>I want to write a JavaScript conditional statement to find the sign of product of three numbers. Display an alert box with the specified sign. The three numbers have to be written in input fields. And when I click on an OK button, it should tell me what sign of product I have. Is it a postive number(+) or negative(-)?</p>
  
  <pre><code>&lt;body&gt;
  Please enter numbers that aren't 0.
  &lt;input id="x" type="text" name="" value=""&gt;
  &lt;input id="y" type="text" name="" value=""&gt;
  &lt;input id="z" type="text" name="" value=""&gt;
  &lt;button type="onclick" onclick="value()" name="button"&gt;OK&lt;/button&gt;
  
  &lt;script&gt;
   function value() {
   document.getElementById('x').innerHTML;
   document.getElementById('y').innerHTML;
   document.getElementById('z').innerHTML;
  
   if (x&gt;0 &amp;&amp; y&gt;0 &amp;&amp; z&gt;0)
   {
        alert("The sign is +");
   }
   else if (x&lt;0 &amp;&amp; y&lt;0 &amp;&amp; z&lt;0)
         {
           alert("The sign is +");
         }
         else if (x&gt;0 &amp;&amp; y&lt;0 &amp;&amp; z&lt;0)
         {
           alert("The sign is +");
         }
         else if (x&lt;0 &amp;&amp; y&gt;0 &amp;&amp; z&lt;0)
         {
           alert("The sign is +");
         }
         else
         {
           alert("The sign is -");
         }
    }
      &lt;/script&gt;
        &lt;/body&gt;
     &lt;/html&gt; 
  </code></pre>