mirror of https://github.com/01-edu/public.git
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
20 lines
640 B
4 years ago
|
## Method Man
|
||
|
|
||
|
### Instructions
|
||
|
|
||
4 years ago
|
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 `*`
|
||
4 years ago
|
- 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
|
||
|
|
||
4 years ago
|
- [nan-academy.github.io/js-training/examples/methods.js](https://nan-academy.github.io/js-training/examples/methods.js)
|