title: Get variable from input
body: <pre><code>&lt;input id="inp"&gt;&lt;/input&gt;
  &lt;button type="button" onclick="fibbon();"&gt;Submit!&lt;/button&gt;
  &lt;p id="JS"&gt;&lt;/p&gt;
  
          &lt;script&gt;
              var n = document.getElementById("inp").value;
              var fibbon = function(n){
                  if ((n===1) || (n===2)){
                      return 1;
                  }
                  else{
                      return fibbon(n-1)+fibbon(n-2);
                  }
                  document.getElementById("JS").innerHTML = fibbon;
              };
  
          &lt;/script&gt;
  </code></pre>
  
  <p>I am trying to get this to work with the input, but it doesn't display the number when I put in a number</p>