var k_as_v = "k_as_v";
obj = {
[k_as_v]:k_as_v,
}
console.log(obj);
Why cant I just keep k_as_v
var k_as_v ="k_as_v";
obj = {
[k_as_v],
}
console.log(obj);
If cant how can i achieve this without re-declaring, any hack !
var k_as_v = "k_as_v";
obj = {
[k_as_v]:k_as_v,
}
console.log(obj);
Why cant I just keep k_as_v
var k_as_v ="k_as_v";
obj = {
[k_as_v],
}
console.log(obj);
If cant how can i achieve this without re-declaring, any hack !
For further actions, you may consider blocking this person and/or reporting abuse
Swathi Vennela -
Rasmus Schultz -
Demehin Ibukunoluwa George -
official_dulin -
Once suspended, yashwanth2804 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, yashwanth2804 will be able to comment and publish posts again.
Once unpublished, all posts by yashwanth2804 will become hidden and only accessible to themselves.
If yashwanth2804 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to kambala yashwanth.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag yashwanth2804:
Unflagging yashwanth2804 will restore default visibility to their posts.
Top comments (4)
Just remove the square brackets.
{ kasv }
No mate , not working
jsbin.com/nuboloqaqi/edit?js,console
One set of curly brackets too many.
Obj = { kasv }
Thank you, Done !