How can I make an Array of Objects from n properties of n arrays in JS? : <p>I have two arrays like this:</p>

<pre class="lang-js prettyprint-override"><code>const opciones = ['A', 'B', 'C', 'D'];
const valoracion = [true, false, false, false];
</code></pre>

<p>And the, I want to create a new Array of Objects from these two arrays, like this:</p>

<pre class="lang-js prettyprint-override"><code>const respuestas = [
  {opc: 'A', val: true},
  {opc: 'B', val: false},
  {opc: 'C', val: false},
  {opc: 'D', val: false},
]
</code></pre>
