Slight help, just confused

I have this code here and I’m using another Javascript tester, but it says that my code has errors between lines 24 - 26. Here’s the code… PS: If you see any other errors or things wrong just say that too.

const quizContainer = getElementById(“quiz”);
const resultsContainer = getElementById(“results”);
const submitButton = getElementById(“submit”);

function buildQuiz() {}

function showResults() {}

buildquiz();

submitButton.addEventListener(‘click’, showResults);

const myQuestions = [{

question: “What does CNS, PNS, and ANS stand for?”,

answer: {

if (userinput = "Central Nervous System, Peripheral Nervous System, and Autonomic Nervous System") {
  console.log("Excellent! Question two commencing...");
} else {
  console.log("Wrong answer. Try again.");
}

}

}]

The problem is that you are trying to put logic in a dictionary. This is not allowed. You should try a different approach.

It might work if you put it in a function and put the function in the dictionary, but i’m not sure if this is good practice or if it even works.

You could also put the answer as the answer end move the logic outside the dictionary.