Functional Programming - Pass Arguments to Avoid External Dependence in a Function

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

// The global variable
let fixedValue = 4;

// Only change code below this line
function incrementer(arr, num) {
return fixedValue + 1
  // Only change code above this line
}

console.log(incrementer(1,3))

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0

Challenge: Functional Programming - Pass Arguments to Avoid External Dependence in a Function

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

1 Like