Created
March 5, 2022 14:21
-
-
Save K-Vishwak/f369128deb1e0f342eb03b6e13208a21 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"; | |
const obj = {}; | |
Object.defineProperty(obj, "a", {value:10, writable:true}); | |
obj.a = 20; | |
console.log(obj.a); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment