JavaScript Array Methods: Example of slice()