Modifying each element


#1



Replace this line with your code.

what is wrong with my code?


#2

You're only multiplying the first item of the list by 2. As you can see in your console and the error states that they want the whole list to be multiplied by 2. Check your indentation.

EDIT:
Your function ends on the first loop because the return is indented underneath it. So you'll never get to the other items in the list.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.