push existing array items into new array

PHOTO EMBED

Sat Apr 22 2023 03:22:54 GMT+0000 (Coordinated Universal Time)

Saved by @thecowsays #javascript

const topTen = ['Jack Reacher', 'Beautiful Creatures', 'Safe Haven',
  'Side Effects', 'The Last Stand', 'Silver Linings Playbook', 'Broken City',
  'Cloud Atlas', 'Parker', 'Eternals'
];
const topThree = [];
for (i = 0; i < 3; i++) {
  topThree.push(topTen[i]);
}
console.log(topThree);
content_copyCOPY

push existing array items to a new array using a for loop