Freecodecamp showing wrong infinite loop error

I can’t duplicate your error. (Is it an “error” or a “warning”?)

I’m suspecting that it is just taking a long time. I think you can put //noprotect at the top of the code to disable infinite loop protection. WARNING: This can be a dangerous thing to do. If you do have an infinite loop (or program that will take 3.78 years to complete) then you will lock up your browser. There were a few challenges where I had to do this, but if I looked harder, sometimes I found a faster algorithm.