title: Any real difference between window.prompt and prompt?
body: <p>Just out of curiosity is there any difference between window.prompt and prompt in JavaScript.</p>
  
  <p>For one of the answers to my exam questions the teacher uses </p>
  
  <pre><code>var yourName = window.prompt("Please enter your first name here\n");
  </code></pre>
  
  <p>and I used</p>
  
  <pre><code>var yourName = prompt("Please enter your first name here\n");
  </code></pre>
  
  <p>It is a written exam so i felt it wouldn't make much difference. </p>