title: What does the caret symbol (^) do in JavaScript?
body: <p>I thought that <code>Math.pow(2,2)</code> was equal to <code>2^2</code> but it is not. So what does <code>^</code> (caret) mean in JavaScript?</p>
  
  <p>I was executing some tests in the console but didn't recognize the results:</p>
  
  <pre><code>2 ^ 2 = 0
  2 ^ 3 = 1
  1 ^ 2 = 3
  </code></pre>