Created
April 26, 2025 15:48
-
-
Save davidystephenson/a5b75c8b7cb8ba9ea2aa3b2709178927 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var passcodes = { | |
back: 3050, | |
kitchen: 'open sesame', | |
} | |
passcodes['back'] = 12345 | |
console.log(passcodes['back']) | |
var subjects = ['js', 'html', 'css', 'react', 'servers', 'aws'] | |
console.log(subjects) | |
// subjects[6] = 'TypeScript' | |
// END OF ARRAY | |
// subjects.push('ts') | |
// subjects.pop() | |
// BEGINNING OF ARRAY | |
// subjects.shift() | |
// subjects.unshift('typescript') | |
subjects.splice(3, 0, 'node') | |
console.log(subjects) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment