Mixed Messages - Magic 8 Ball

Hello everyone! Attaching my submission for the mixed messages project, feel free to leave any comments and feedback!

Nice - does exactly what it says on the tin!

In terms of structure, I have only a couple of small critiques:

  1. Why are your responses in 3 arrays, instead of 1?
  2. The duplication of randomising code seems unnecessary. Where you’ve put
let answerType = responses[Math.floor(Math.random() * responses.length)];

console.log(answerType[Math.floor(Math.random() * answerType.length)]);

You could instead have simply:

console.log(responses[Math.floor(Math.random() * responses.length)]);

Or keep the declaration of answerType and then just print it.