Is this possible with JavaScript, or another client-side language? I think I need to make use of classes, import/export, capturing elements, and assigning buttons. Unfortunately I have had little luck searching for answers elsewhere. I’m just looking for a more efficient way of uploading and formatting questions and their answers.
This is what my array of objects looks like.
const questions = [
{
question: 'What year did the US gain independence?',
answers: [
{ text: '1776’, correct: true },
{ text: '1676', correct: false },
{ text: '1576', correct: false },
{ text: '1476', correct: false }
]
},
I am open to restructuring the format.