title: Why is my for loop with (4^i >= x) as condition becoming infinite in JavaScript?
body: <p>This is my code for a leveling system (every level requires 4^level XP):</p>
  
  <pre><code>var x = 0; // x will change
  var y = 0;
  for (var i = 0; 4^i &gt;= x; i++) {
      y = i;
  }
  console.log(y);
  </code></pre>
  
  <p>However, when I run this code, it ends up freezing the page and making it unresponsive. I can only assume that it is an infinite loop. Is there a syntax error in this code?</p>