Code failing tests

Tell us what’s happening:
I would like some help, because code is falling

Your code so far


// The global variable
var fixedValue = 4;

// Only change code below this line
function incrementer (value) {
return value + 1;

// Only change code above this line

}
var newValue = incrementer(fixedValue);

Your browser information:

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

Challenge: Pass Arguments to Avoid External Dependence in a Function

Link to the challenge:

The function should return the incremented value. You have done it with return. The challenge is solved at that point.
Other instructions outside the function are not asked and have to be removed!

1 Like

in fact

// The global variable
var fixedValue = 4;

// Only change code below this line
function incrementer (value) {
  return value + 1;

  // Only change code above this line
}

thank you @anon10857827

1 Like