--- id: 587d7b8e367417b2b2512b5f title: Pass Arguments to Avoid External Dependence in a Function challengeType: 1 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(fixedValue === 4, "Your function incrementer should not change the value of fixedValue.");' - text: '' testString: 'assert(code.match(/function\s+?incrementer\s*?\(.+?\)/g), "Your incrementer function should take a parameter.");' - text: '' testString: 'assert(newValue === 5, "Your incrementer function should return a value that is one larger than the fixedValue value.");' ```
## Challenge Seed
```js // the global variable var fixedValue = 4; // Add your code below this line function incrementer () { // Add your code above this line } var newValue = incrementer(fixedValue); // Should equal 5 console.log(fixedValue); // Should print 4 ```
## Solution
```js // solution required ```