[Solved] What is this form or syntax called in javascript? [closed]
How can the variable name be redefined? It isn’t. What’s with the left to right assignment? Doesn’t = work right to left? Yes, and that’s what’s happening here. That’s destructuring assignment. This one line: const {key1: value1, key2:value2} = name is the equivalent of this: const value1 = name.key1; const value2 = name.key2; You’re quite … Read more