--- id: a3f503de51cfab748ff001aa title: Pairwise challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert.deepEqual(pairwise([1, 4, 2, 3, 0, 5], 7), 11, "pairwise([1, 4, 2, 3, 0, 5], 7) should return 11.");' - text: '' testString: 'assert.deepEqual(pairwise([1, 3, 2, 4], 4), 1, "pairwise([1, 3, 2, 4], 4) should return 1.");' - text: '' testString: 'assert.deepEqual(pairwise([1, 1, 1], 2), 1, "pairwise([1, 1, 1], 2) should return 1.");' - text: '' testString: 'assert.deepEqual(pairwise([0, 0, 0, 0, 1, 1], 1), 10, "pairwise([0, 0, 0, 0, 1, 1], 1) should return 10.");' - text: '' testString: 'assert.deepEqual(pairwise([], 100), 0, "pairwise([], 100) should return 0.");' ```
## Challenge Seed
```js function pairwise(arr, arg) { return arg; } pairwise([1,4,2,3,0,5], 7); ```
## Solution
```js // solution required ```