I thought this was fun. Happy to see how much I have learned.
1 Like
Hi,
Your code is pretty good.
Consider the following improvements:
- Document how to run it.
- Don’t reuse code. Write a function that picks a random element from the array.
- Split long lines of code for readability.
- Include comments in the code. For a short code like this, it doesn’t seem useful, but large projects can quickly get out of hand.
Cheers!
J
1 Like
Thank you so much for your feedback.