Created
August 24, 2017 22:26
-
-
Save tgallacher/00bb3ee8c467cddde61f09efcb6cbc66 to your computer and use it in GitHub Desktop.
Supplementary code snippet for Medium post
This file contains 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
// Define our 'constant' variable | |
const data = { | |
a: 1, | |
b: 2 | |
}; | |
// Let's mutate its contents: All Perfectly acceptible! | |
data.b = 5; | |
data.d = 'foo'; | |
delete data['a']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment