title: Switch-Case for strings in Javascript not working as expected
body: <p>So I have this problem with strings and switch-case, and I'll try to keep it as simple as possible.</p>
  
  <p>Here event.keyCode has the value "65", and is the result of a keydown event of 'a' (using JQuery). </p>
  
  <pre><code>if (event.keyCode == "65") {
     alert("hmmmm");
  }
  </code></pre>
  
  <p>That works, but:</p>
  
  <pre><code>switch (event.keyCode) {
     case '65':
        alert("Yay!");
        break;
  }
  </code></pre>
  
  <p>That doesn't. However this will work:</p>
  
  <pre><code>switch ('65') {
     case '65':
        alert("Yay!");
        break;
  }
  </code></pre>
  
  <p>And if I do this:</p>
  
  <pre><code>var t = '65';
  switch (t) {
     case '65':
        alert("Yay!");
        break;
  }
  </code></pre>
  
  <p>It works. And then I tried this:</p>
  
  <pre><code>var t = event.keyCode;
  switch (t) {
     case '65':
        alert("Yay!");
        break;
  }
  </code></pre>
  
  <p>But it fails!</p>
  
  <p>So why does it match in the if-block at the beginning, but not for the switch-case?</p>