--- id: 587d7dab367417b2b2512b6e title: Use the every Method to Check that Every Element in an Array Meets a Criteria challengeType: 1 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(code.match(/\.every/g), "Your code should use the every method.");' - text: '' testString: 'assert(!checkPositive([1, 2, 3, -4, 5]), "checkPositive([1, 2, 3, -4, 5]) should return false.");' - text: '' testString: 'assert(checkPositive([1, 2, 3, 4, 5]), "checkPositive([1, 2, 3, 4, 5]) should return true.");' - text: '' testString: 'assert(!checkPositive([1, -2, 3, -4, 5]), "checkPositive([1, -2, 3, -4, 5]) should return false.");' ```
## Challenge Seed
```js function checkPositive(arr) { // Add your code below this line // Add your code above this line } checkPositive([1, 2, 3, -4, 5]); ```
## Solution
```js // solution required ```