Sum All Odd Fibonacci Numbers becomes unresponsive

Sum All Odd Fibonacci Numbers becomes unresponsive
0

#1

Tell us what’s happening:

Hi. I was working on the Sum All Odd Fibonacci Numbers challenge. I deleted a portion of the code, and now the tab becomes unresponsive everytime I try to visit the page. Does freecodecamp automatically execute the code on opening the browser? Any help on resolving this issue would be appreciated.

Your code so far
function sumFibs(num) {
var sum = 0;
var a=0;
var b=1;
var hold;
for (var i=1;i<num;i)
if (sum%2==0) {
sum+=i;
}
hold=i;
i=a+b;
a=b;
b=i;
}

sumFibs(4);

**Your browser information:**

Your Browser User Agent is: ```Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36```.

**Link to the challenge:**
https://www.freecodecamp.org/challenges/arguments-optional

#2

Fixed the issue, turns out someone else had the same issue. The code contained an infinite loop, and freecodecamp automatically executes the code upon opening the tab. The solution is to use the no-run url: http://www.freecodecamp.com/challenges/challenge-name?run=disabled