Condense with .reduce() freezing entire page

Condense with .reduce() freezing entire page
0

#1

I’m having trouble with the reduce() function in general; now it has decided to freeze up the page, no input is allowed once I open into the current-challenge. I am working on algorithms but don’t want to leave too many items open, and I can’t use the ‘reset my code’ button as the entire page (including the back button) is unresponsive.


#2

You have created either an infinite loop or infinite recursion.
FCC uses an infinite loop protection, but it can’t catch every case.
The reason that your browser crashes every time you try to load the challenge is because the code in your editor automatically runs. Try disabling auto run.
Another option is to clear the challenge data from your browser cache.


#3

I had the challenge opened in multiple browsers.