Array slicing allows you to extract a portion of the array.
It takes two parameters: the starting index and the ending index (optional). It returns a new array containing the extracted portion.
Let's perform such operations on the array ['cat', 'dog', 'fish', 'turtle', 'parrot']. Its structure is the following:
If the second argument is a positive number, it skips the first couple of elements.