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
660 B
20 lines
660 B
4 years ago
|
## 🌟 Spread the Word 💬
|
||
|
|
||
|
### Notions
|
||
|
|
||
|
- [devdocs.io/operators/spread_syntax](https://devdocs.io/javascript/operators/spread_syntax)
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
Gondor needs help!
|
||
|
|
||
|
To call for help you will have to concat the provided strings and arrays;
|
||
|
`easternmost` (string), `easternBeacons` (array), `centerBeacon` (string),
|
||
|
`westernBeacons` (array) and `westernmost` (string) into the variable array
|
||
|
`beaconsLit` that you will declare. Only one array of burning fires must be left
|
||
|
at the end.
|
||
|
|
||
|
Unfortunately young hobbit, the guards are watching the `Array.concat()`, the
|
||
|
`Array.unshift()` and the `Array.push()` methods. You will have to find another
|
||
|
way...
|