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