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.
17 lines
549 B
17 lines
549 B
4 years ago
|
## Cut
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
Using the `.slice` method and the provided `alphabet` variable which is a string of all
|
||
|
the character in an alphabet:
|
||
|
|
||
|
- Declare a `cutFirst` variable that removes the 10 first characters of
|
||
|
`alphabet`.
|
||
|
- Declare a `cutLast` variable that removes the 3 last characters of `alphabet`.
|
||
|
- Declare a `cutFirstLast` variable that remove the 5 first characters and 6
|
||
|
last characters of `alphabet`.
|
||
|
|
||
|
### Notions
|
||
|
|
||
|
- [devdocs.io/javascript/global_objects/string/slice](https://devdocs.io/javascript/global_objects/string/slice)
|