Last active
March 5, 2022 14:37
-
-
Save K-Vishwak/b74fe4c84336292f91990936db88b2c1 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 = { | |
word: "first", | |
get test() { | |
return this.word.toUpperCase(); | |
} | |
}; | |
obj.test = 'test'; | |
console.log(obj.test); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment