News for hackers. Stuff that matters.
Re:JavaScript's New Superpower: Explicit Resource Management by MrJohz on Saturday May 17, 2025 @01:45PM (#44015816)
That's also possible, and it's common when using this pattern, but the specific syntax in the original question was I believe property access, and not part of a property literal. I didn't bring that up because I thought my comment was long enough and I wanted to explain that specific syntax. But yeah, you also have this syntax to set properties in object literals, and a similar syntax in classes.

There are no comments on this comment yet.