function pickRandomAnswer(){ answerArray = [AffirmativeAnswers, nonCommittalAnswers, negativeAnswers]; randomAnswersArrary = answerArray[Math.floor(Math.random() * answerArray.length)]; randomAnswer = randomAnswersArrary[Math.floor(Math.random() * randomAnswersArrary.length)] htmlAnswer = /*HTML*/ `
Question: ${question}

Answer: ${randomAnswer}
`; clearScreen(); updateView(); } function clearScreen(){ app.innerHTML = ''; }