Spread syntax with strings
expands each character of a string by prefixing it with ...
expands any kind of character
works anywhere inside an array (must not be last)
don`t confuse with the rest operator
can also be used as function parameter
Links
Required Knowledge
- `const` declaration (Block scope)
- array (Destructuring)
- with destructuring (Rest operator)
Related Katas
Unary Operators
Bitwise Shift Operators
Rest operator
Spread operator
- with arrays
- with strings
Difficulty Level
INTERMEDIATE
First Published
13 April 2015
Stats
5 tests to solve