Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created August 22, 2023 06:18
Show Gist options
  • Save codecademydev/228d36fdd633e6ccda181c8610b26af6 to your computer and use it in GitHub Desktop.
Save codecademydev/228d36fdd633e6ccda181c8610b26af6 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();
console.log(secretMessage.length);
secretMessage.push('to','program');
console.log(secretMessage.length);
secretMessage[7] = 'right';
secretMessage.shift();
secretMessage.unshift('programming');
secretMessage.splice(6,5 ,'know');
console.log(secretMessage);
console.log(secretMessage.join(' '));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment