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);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter