I'm creating a Quiz on pure js. I don't understand how it is possible to create a generic array title . I don’t want to write to each tatle array, it’s very long, but if there is a common array in which these arrays will be, it will be much easier. Thanks
const DATA =
[
{
question: 'Сколько еще работать над сайтом?',
answers: [
{
id: '1',
value: 'A',
info: 'год',
correct: true,
},
{
id: '2',
value: 'B',
info: 'месяц',
correct: false,
},
{
id: '3',
value: 'C',
info: 'день',
correct: false,
},
{
id: '4',
value: 'D',
info: 'до Нг',
correct: false,
},
]
},
{
question: 'fdggdм?',
answers: [
{
id: '1',
value: 'A',
correct: true,
},
{
id: '2',
value: 'B',
correct: false,
},
{
id: '3',
value: 'C',
correct: false,
},
{
id: '4',
value: 'D',
correct: false,
},
]
},
];