The output is as expected. however an error is thrown. Where Am I going wrong .Kindly help.
your code is correct and works perfectly. However, codecademy expects you to print ONLY the elements of the array, without any additional string.
Thank you for the correction.
Now my code executes without throwing error.