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.

16 lines
622 B

4 years ago
## Method Man
### Instructions
Write 5 functions:
- `words`: that takes a string, splits it by spaces, and returns an array of those substrings.
- `sentence`: that takes an array of strings, and joins them with spaces to return a single string.
- `yell`: that takes a string and returns it in upper case.
- `whisper`: that takes a string and returns it in lower case, surrounded by `*`.
- `capitalize`: that takes a string and transforms it so that the first character is upper case, and the subsequent characters are lower case.
4 years ago
### Notions
- [Methods](https://nan-academy.github.io/js-training/examples/methods.js)