Sum All Numbers in a Range (CSP)

when Irunning the code, it throws an error: “EvalError: call to eval() blocked by CSP”.
What is it?


    function sumAll(arr) {
var a=[];
var b=0;

 
if (arr[1] > arr[0]){
 var c = arr [0];
for (var i = 0; i < arr[1]-2; i++){

c  = c + 1;
a = arr.push(c);
}
return b = arr.reduce((sum, numb) => sum + numb, 0);
}
else {
   var c = arr [1];
for (var i = 0; i < arr[0]-2; i++){

c  = c + 1;
a = arr.push(c);
}
return b = arr.reduce((sum, numb) => sum + numb, 0);
}

}
sumAll([4, 1]);

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-numbers-in-a-range

after a server update freecodecamp have some issues
at this tme it works reliably only on google chrome

I’m guessing that you are using Firefox of Safari. As stated in the banner at the top of the forum, those are not working well right now. The team is trying to get this problem resolved, but for right now the tests only work on Google Chrome.