Need Help with this!

I don’t know what I am doing wrong. Can some help me?
I tried using different browsers BUT still won’t work…

My code so far

// the global variable
var fixedValue = 4;

function incrementer() {
// Add your code below this line
return fixedValue + 1;

// Add your code above this line

var newValue = incrementer(); // Should equal 5
console.log(fixedValue); // Should print 4

My browser information:

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

Challenge: Avoid Mutations and Side Effects Using Functional Programming

Link to the challenge:

And the same Problem with the next Challenge as well:

Try deleting these lines… I think they might interfere with tests


console.log will prevent your tests from passing

1 Like

Thank you so much! I could only do one person’s post to ‘Solution’. But you were both Right!