let secretMessage = ['Learning', 'is', 'not', 'about', 'what', 'you', 'get', 'easily', 'the', 'first', 'time,', 'it', 'is', 'about', 'what', 'you', 'can', 'figure', 'out.', '-2015,', 'Chris', 'Pine,', 'Learn', 'JavaScript']; secretMessage.pop(); // console.log(secretMessage.length); secretMessage.push('to', 'Program.'); secretMessage[7] = 'right'; // console.log(secretMessage); secretMessage.shift(); secretMessage.unshift('Programming'); secretMessage.splice(6, 5, 'know'); // console.log(secretMessage); console.log(secretMessage.join(' '));
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