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.
16 lines
538 B
16 lines
538 B
4 years ago
|
## Keep
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
Using the `.slice` method again and the provided `alphabet` variable of a string of
|
||
|
all the characters in an alphabet:
|
||
|
|
||
|
- Declare a `keepFirst` variable of only the 6 first characters from `alphabet`.
|
||
|
- Declare a `keepLast` variable of only the 7 last characters from `alphabet`.
|
||
|
- Declare a `keepFirstLast` variable of the 3 first characters and 4 last
|
||
|
characters from `alphabet`.
|
||
|
|
||
|
### Notions
|
||
|
|
||
|
- [devdocs.io/javascript/global_objects/string/slice](https://devdocs.io/javascript/global_objects/string/slice)
|