Tricky Outputs & Edge Cases — Question 46

Reason about JavaScript execution precisely.

Knowledge Check

What happens here: const a = { x: 1 }; const b = a; b.x = 2;?