title: JavaScript `promt` will not execute at beginning of script
body: <p>This is a small simple issue, I am beginning to learn JavaScript and currently testing else if statements as well as a 'prompt' action. However this action will not execute there for I can't give the 'Chicken' a value</p>
  
  <p>What exactly did I do wrong?</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
  &lt;script&gt;
  function state(){
   var chicken = promt("insert value");
   var alive = 1;
   var dead = 2;
  
   if (chicken == alive)
   {
    document.write("Chicken is Alive");
   }
   else if 
   {
    document.write("Chicken is Dead");
   }
  }
  
   &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>