Modifying each element


Replace this line with your code.

what is wrong with my code?


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.

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.


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