Change array elements to objects with key, value : <p>Can anyone tell me how to change this array in javaScript to the following one with objects having the same key 'name' ?</p>

<pre><code>const myArray = ['mark', 'david', 'monica'];
</code></pre>

<p>Desired Output:</p>

<pre><code>const myArray = [{name: 'mark'}, {name: 'david'}, {name: 'monica'}];
</code></pre>
