Shallow and Deep Copies

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

You copy a user object with the spread syntax before editing their address, but the original user's address changes too. Explain why, and compare the ways you could make a full copy, including their limits.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →