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.
29 lines
743 B
29 lines
743 B
4 years ago
|
## Unbreakable
|
||
4 years ago
|
|
||
4 years ago
|
### Instructions
|
||
4 years ago
|
|
||
|
Implement 2 functions:
|
||
|
- `split` that works like the string method `.split` but take the string as
|
||
|
it's first argument.
|
||
|
|
||
4 years ago
|
- `join` that works like the string method `.join` but take the array as
|
||
4 years ago
|
it's first argument.
|
||
|
|
||
|
|
||
|
### Notions
|
||
|
|
||
4 years ago
|
- [devdocs.io/javascript/global_objects/array/join](https://devdocs.io/javascript/global_objects/array/join)
|
||
|
- [devdocs.io/javascript/global_objects/string/split](https://devdocs.io/javascript/global_objects/string/split)
|
||
4 years ago
|
|
||
|
|
||
|
### Code provided
|
||
4 years ago
|
|
||
|
> all code provided will be added to your solution and doesn't need to be submited.
|
||
|
|
||
4 years ago
|
```js
|
||
|
String.prototype.split = undefined
|
||
|
String.prototype.match = undefined
|
||
|
RegExp.prototype.exec = undefined
|
||
|
Array.prototype.join = undefined
|
||
|
```
|