You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
614 B

4 years ago
## Long Words
### Instructions
Create three functions, which each accept an array as an argument.
4 years ago
- `longWords`: returns `true` if every element of the array is a `string` with at least 5 characters.
4 years ago
- `oneLongWord`: returns `true` if at least one element of the array is a `string` with 10 or more characters.
4 years ago
- `noLongWords`: returns `true` if there are no elements in the array which is a `string` with at least 7 characters.
4 years ago
### Notions
- [Array.prototype.every](https://devdocs.io/javascript/global_objects/array/every)
- [Array.prototype.some](https://devdocs.io/javascript/global_objects/array/some)