title: How does the Javascript left shift operator work?
body: <p>I noticed an odd behavior with Javascript: when I execute <code>1967779 &lt;&lt; 11</code> I get a negative result: -264955904</p>
  
  <p>However, if I run that same line in a Python interpreter, I get the correct answer: 4030011392</p>
  
  <p>Note that both Firefox's and Chrome's Javascript consoles returned the same negative number, so it must be an issue with Javascript itself and not the engine.</p>
  
  <p><strong>Why am I getting different values between Python and Javascript? What can I do to work around this? How does the Javascript left shift operator work?</strong></p>