+ 3
How to access the object identifier name dynamically with `this` in it's own properties
```js const Aybak3k = {nickName: this.something} console.log(Aybak3k.nickName // should print "Aybak3k" dynamically !hard coded ```
2 Respostas
+ 2
Object value cannot directly return a value, it can only be assigned a value.
Use object function to get a return value.
Or use getter to get object value dynamically
https://code.sololearn.com/cThB1uYRxUIF/?ref=app
+ 1
that's not what i meant
i don wanna use a constructor