Learning on Web Dev Open is free for all.

Systems Thinking > What a variable actually holdsMutation at a distance
Phase 03What a variable actually holds136 of 434

Mutation at a distance

Plant the bug on purpose, watch it survive a code review, then make the shape of the data prevent it.

Build40 minAI adversary

Build this in your own editor

This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.

You should now be able to

  • Reproduce a shared-reference bug deliberately
  • Refactor so the bug becomes impossible rather than fixed
Ask the community

Loading…