Created
November 24, 2019 12:04
-
-
Save lovubuntu/a1de9d1e0b26c9e2189c9015ce425cf0 to your computer and use it in GitHub Desktop.
Strict mode in developer console of browser
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
(function() | |
{ | |
'use strict'; | |
let y = {one: 1, two: 2, three: 3}; | |
Object.freeze(y); | |
y.one = 234; // This will throw error in console | |
console.log(y) | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment