Hi everyone, I hope you are having a great day!
This project was a great, and not too time consuming.
I estimate it took me about 2 hours.
Here’s the link to my Zun Tzu phrases repo:
https://github.com/E-FigueroaR/CodeAcademy-s-Project-Mixed-Messages
Pls comment any suggestions.
Is there a reason you chose to encapsulate the whole program in an object?
How is it called from node?
A suggestion for generating the 3 quotes, would be to run a loop 3 times to run the Math.floor(Math.random() * this.zunPhrases.length)
line, and each time push the result to an array.
And then reference index 0, 1 and 2 in the return statement.
Thank you, I’ll try it out.
There’s not particular reason.
It’s called. zunTzu.giveAPhrase()