Mixed Messages - Digital Fortune Cookie!


I hope that you’re enjoying the course!

I took a look at your project and like it’s simplicity.

A few minor things that I picked up on that you might want to consider:

  1. Consistent use of ; at the end of lines - while the code will often run without this, it is best practice to end a line of code with a ; (other languages demand it).
  2. Would it be better to use fortuneMessages.length & spiritAnimal.length rather than specific numbers in your selectors (Lines 7 & 8) to make it easier to add more messages and animals down the line? (I liked the way this developer approached this → Random Message Generator - you might like to take a look at their submission)

Thanks for the fortune cookie! If you have time, would you mind reviewing my submission? Thanks!