Created
October 25, 2016 12:42
-
-
Save royletron/0bfac66057f5a3c9a7b01e4aa973d5ed 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
'use strict'; | |
NaN = 0 // Syntax error! | |
var obj1 = {}; | |
Object.defineProperty(obj1, 'x', {value: 10, writeable: false}); | |
obj1.x = 9 // Syntax error! | |
var obj2 = {x: 10}; | |
obj2.x = 20; // Accepted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment