Part 6 of 7 · Chapter 4 of 7

Why Changing One Changed the Other

You copied the list, changed the copy, and the original changed with it. Point three different kinds of copy at the same nested list, mutate one item at the bottom, and see precisely which of them flinch.

Intermediate11 min read

Worth reading first: Names Are Not Boxes


Make a free account to read on

Every chapter is free — an account is how your progress, XP, and streak follow you from your laptop to your phone, and how you show up on the leaderboard. No payment, no trial.