I have two arrays like this:
const opciones = ['A', 'B', 'C', 'D'];
const valoracion = [true, false, false, false];
And the, I want to create a new Array of Objects from these two arrays, like this:
const respuestas = [
{opc: 'A', val: true},
{opc: 'B', val: false},
{opc: 'C', val: false},
{opc: 'D', val: false},
]