Mixed Messages - Hobbies Suggestion

The project difficulty level was just right for a beginner.

It took me about 30 minutes to complete it. Here is the link to my project:

Do give me feedback on how could I improve this project.

1 Like

Great work! I think its great the way it is.

Since you asked, the only thing I could think of to suggest is turning the anon function into a one liner:

const randomHobbies = () => hobbiesList[Math.floor(Math.random() * hobbiesList.length)];

This is the way we do it at my job. Some people shy away from this because your method can be more readable, but once you get used to this syntax it can help make large code files feel less cluttered.

Have a good one!

1 Like

Hi, thank you for the suggestion. I will take note of it and try to implement in future projects.