Join Nostr
2024-11-28 22:00:26 UTC

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).