1. Declare an array of rainbow colors 2. Print 4th element of this array 3. Print Length and last index of this array 4. Loop over each element of the array using for & foreach loops 5. Declare array as @myArray = (1..9); and then Create an array of odd numbers from above array using array slicing.