I am just barely understanding what is happening here. Can someone read my notes below and tell me if I have this right?
The following code:
const { start : { x: startX, y: startY }} = a;
will do the following steps:
1 - Find the constant called “a”.
2 - Within “a”, find the key called “start”.
3 - In “start”, look for another key called, “x” and get it’s value.
4 - Use that value and assign it to a new variable called “startX”