Meal Maker Project

https://www.codecademy.com/courses/introduction-to-javascript/projects/meal-maker?action=resume_content_item

On part 10, the hint states:

However, don’t I have to write a return value… like return dishes[randomIndex]; ???

yes, you do. But a hint is hint, that is something different then the full solution. The hint points you in the right direction.

return dishes[randomIndex];

wouldn’t this work? since randomIndex returns a number and dishes gives an array

yes, that should work. The hint only tells you that you need a return value, you still need to figure out what that needs to be. Otherwise it would just be the solution, not a hint.