How to use slice() in JavaScript on an array or a string? – Tim ...

How to use slice() in JavaScript on an array or a string? – Tim ...