Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created February 23, 2021 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/ae0126a779373f07e754f115614809d5 to your computer and use it in GitHub Desktop.
Save codecademydev/ae0126a779373f07e754f115614809d5 to your computer and use it in GitHub Desktop.
Codecademy export
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();
secretMessage.push('to', 'Program');
secretMessage[secretMessage.indexOf('easily')] = 'right';
secretMessage.shift();
secretMessage.unshift('Programming');
secretMessage.splice(6, 5, 'know,');
console.log(secretMessage.join(' '));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment