3 ms·
I wonder if the author is confused about this: "This syntax is a bit confusing, as it's the opposite of the name-value pair syntax of object literals." It's no
by tlb 11y ago
I wonder if the author is confused about this: "This syntax is a bit confusing, as it's the opposite of the name-value pair syntax of object literals."
It's not the opposite at all. In all cases, between braces, it's "key : value".