A forEach callback returns x * 2 for every element. What does the forEach call itself return?
Explanation
forEach invokes the callback but does not collect its returned values, so the method call returns undefined. Expecting a doubled array confuses forEach with map, which is designed to gather callback results.