Created
November 28, 2018 09:40
-
-
Save debugmodedotnet/d82f058472d9c81c4ca9b6d48f8a2d58 to your computer and use it in GitHub Desktop.
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
'use strict' | |
var cat = { | |
name:'foo', | |
age: 9 | |
} | |
Object.preventExtensions(cat); | |
cat.color ='black'; | |
console.log(cat.color); // error thrown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment