Skip to content

Instantly share code, notes, and snippets.

@thetombomb91

thetombomb91/badConst.js

Last active Aug 26, 2020
Embed
What would you like to do?
// Our const object
const myObject = {
name: 'Thomas',
age: 99,
country: 'US'
};
let secondObject = {
name: 'Chad',
age: 70,
country: 'CA'
}
// This is NOT allowed. We cannot reassign a const like this
myObject = secondObject;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.