My project outputs a random fact message about an alien animal from another planet.
I had a lot of fun doing this project. My biggest challenge was trying to stick to the initial scope of my project and not adding too much extra functionality. In future versions I plan on potentially adding user input, more message templates, as well as altering the way I store my data by using json files instead of hard coding arrays within the object properties.
Thank you for reviewing my code!
Hello, and welcome to the forums!
I really like your project. It’s like a Mad Libs for Alien Animal Facts.
As for feedback, there is an issue preventing one of the templates from appearing:
let index = Math.floor(Math.random() * 4)
will only produce numbers up to and including 3, so the 4 in the
switch can’t be reached right now.
Your ideas for the future sound fun too. Nice work!