EvalError: call to eval() blocked by CSP :(

Tell us what’s happening:

i am trying to solve while loop problem but i am getting error in output area which is

EvalError: call to eval() blocked by CSP

Your code so far


// Setup
var myArray = [];

// Only change code below this line.

var x = 5;

while(x >= 0)
{
    myArray.push(x);
    x--;
};

**Your browser information:**

User Agent is: <code>Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0</code>.

**Challenge:** Iterate with JavaScript While Loops

**Link to the challenge:**
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-while-loops

Same here. Still works in Chrome …

@atulcodex @michaelsndr

1 Like