Axel Rauschmayer on Nostr: #JavaScript syntax: 😬 class C { [x] = 'abc' } new C() creates an instance property ...
#JavaScript syntax: 😬
class C { [x] = 'abc' }
new C() creates an instance property whose key is the value stored in the variable `x` (i.e., `x` must exist in a surrounding scope).
Published at
2024-11-28 22:00:26 UTCEvent JSON
{
"id": "b632f093bb3a5bc0c9a4a986f04a10d8e2af234c65a5d8b89b69174b5762484e",
"pubkey": "7a7a0978cc46ef7fd548fb125e51c04de7d4ca639417a21b56aa95e3711c0b38",
"created_at": 1732831226,
"kind": 1,
"tags": [
[
"t",
"javascript"
],
[
"proxy",
"https://fosstodon.org/@rauschma/113562827241742294",
"web"
],
[
"proxy",
"https://fosstodon.org/users/rauschma/statuses/113562827241742294",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/rauschma/statuses/113562827241742294",
"pink.momostr"
],
[
"-"
]
],
"content": "#JavaScript syntax: 😬\n\nclass C { [x] = 'abc' }\n\nnew C() creates an instance property whose key is the value stored in the variable `x` (i.e., `x` must exist in a surrounding scope).",
"sig": "fa2cf2140356770e73582fd2f56f13b5b37568ec9d05dbb9c5926e8d906b68a0b86ed7ffb35a716f558f1122308e24b63145f9c29ffd7f03036a466b62c62bef"
}