title: JavaScript eval
body: <p>Why doesn't this <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/eval" rel="nofollow noreferrer"><code>eval</code></a> call <a href="https://developer.mozilla.org/en/window.alert" rel="nofollow noreferrer"><code>alert("Summer")</code></a>?</p>
  
  <pre><code>eval('(caption="Summer";alert(caption))');
  </code></pre>
  
  <p>Does it have something to do with the quotes in "Summer"?</p>