MIXED MESSAGES: The Great Zun Tzu phrases

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:


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()