while loop not working correctly with the > token
<p>This does not seem to be working I am not sure how to get this while loop to work correctly any help would be appreciated.</p>

<pre><code>function getProductCode() {
   productCode = parseInt(prompt("Enter Product Code: "));
   while (productCode &lt; 1 || &gt; 9999) 
   {
      document.writeln("Error! the product Code must be between 1 - 9999");
      parseInt(prompt("Enter Product Code: "));
   }
   return productCode
}

getProductCode()
</code></pre>
