Re:Performance Analysis of Python's Dict() and {}
by lights0123 on Monday January 22, 2024 @06:20PM
(#39096982)
{name, age}
does the same in modern JS, assigning the variable to the key with the same name.
For my part, those names are often the same anyway, though, since the calling scope names are often arbitrary and might as well match the parameter names.