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.

20 lines
640 B

4 years ago
## Method Man
### Instructions
Write 5 functions:
4 years ago
- `words` that takes a string
and split it into an array of strings on spaces
- `sentence` that takes an array of strings and join them with spaces
- `yell` that take a string and return it in upper case
- `whisper` that take a string and return it in lower case
and surround it with `*`
- Create a `capitalize` function that takes a string
4 years ago
and transforms it to upper case only for the first letter,
and in lowercase for the rest of the string
4 years ago
### Notions
- [nan-academy.github.io/js-training/examples/methods.js](https://nan-academy.github.io/js-training/examples/methods.js)