How to duplicate elements of an array in the same array with JavaScript?

How to duplicate elements of an array in the same array with JavaScript?

More to explore

Based on this image's title: “How to duplicate elements of an array in the same array with JavaScript?