Created
March 27, 2019 22:59
-
-
Save ilearnjavascript/52965eef137be88d241954973eb142b6 to your computer and use it in GitHub Desktop.
es6 - new variable declarations - let and const - 3.js
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
const obj = { | |
firstname: 'John' | |
} | |
console.log(obj.firstname); | |
obj.firstname = 'Jane'; // mutation is still possible | |
console.log(obj.firstname); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment