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.
|
|
|
## Unbreakable
|
|
|
|
|
|
|
|
### Instructions
|
|
|
|
|
|
|
|
Implement 2 functions:
|
|
|
|
|
|
|
|
- `split` that works like `String.split`, but takes the `string` as its first argument.
|
|
|
|
|
|
|
|
- `join` that works like `Array.join`, but take the array as
|
|
|
|
its first argument.
|
|
|
|
|
|
|
|
### Notions
|
|
|
|
|
|
|
|
- [Array.join](https://devdocs.io/javascript/global_objects/array/join)
|
|
|
|
- [String.split](https://devdocs.io/javascript/global_objects/string/split)
|
|
|
|
|
|
|
|
### Code provided
|
|
|
|
|
|
|
|
> The provided code will be added to your solution, and does not need to be submitted.
|
|
|
|
|
|
|
|
```js
|
|
|
|
String.prototype.split = undefined
|
|
|
|
String.prototype.match = undefined
|
|
|
|
RegExp.prototype.exec = undefined
|
|
|
|
Array.prototype.join = undefined
|
|
|
|
```
|