Lab · PractitionerLesson 2 of 3~15 min

Lab: poison the prototype

An unguarded merge meets a magic key. Watch every object change.

Read the merge function and confirm it guards nothing. Merge a clean object first for the baseline, then merge the magic key and read the verdict: the pollution lands on the shared prototype, which is why one merge affects everything.

That was the whole lesson.

A free account adds the interactive part: the marking quiz, the lab if this lesson carries one, live progress, the timed exam, and a certificate employers can verify.