<b>What will be the output for the following code?</b>

<span style="font-weight: 400;">function* generator() {</span>

<span style="font-weight: 400;">  yield 1;</span>

<span style="font-weight: 400;">  yield 2;</span>

<span style="font-weight: 400;">  yield 3;</span>

<span style="font-weight: 400;">}</span>

<span style="font-weight: 400;">const values = [...generator()];</span>

<span style="font-weight: 400;">console.log(values);</span>