title: Using math.min to find smallest of 3 numbers in javascript. Doing homework and just can not get this. This is what I have so far
body: <p>Write a function <strong>minimum3</strong> that returns the smallest number of 3 floating-point numbers.  use the <code>math.min function</code>.  Incorporate into a script that reads 3 values from user and determines the smallest.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;
  Javascript Program to find smallest from 3 numbers&lt;/title&gt;
  
  &lt;script type="text/javascript"&gt;
  
  
  var num1;
  var num2;
  var num3;
  var num1Int = parseInt(num1);
  var num2Int = parseInt(num2);
  var num3Int = parseInt(num3);
  var num4 = Math.min(num1Int, num2Int, num3Int);
  
  
  document.write(num4);
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form name=f1&gt;
  num1: &lt;input type="textbox" name=num1&gt;&lt;br&gt;
  num2: &lt;input type="textbox" name=num2&gt;&lt;br&gt;
  num3: &lt;input type="textbox" name=num3&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
  
  &lt;button onclick="num4"&gt;Smallest&lt;/button&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>