Why is this error?


#1

The output is as expected. however an error is thrown. Where Am I going wrong .Kindly help.


#2

Sorry Here uis the snap of code


#3

Hi
your code is correct and works perfectly. However, codecademy expects you to print ONLY the elements of the array, without any additional string.
Cheerio


#4

Hi thebelgian1,

Thank you for the correction.
Now my code executes without throwing error.
:slightly_smiling:

Regards
Yugantika