5 hands-on exercises and 5 find-the-bug challenges for the JavaScript Storage Events lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Show that changing storage in the same tab does not fire the event.
Build a message from a fake storage event.
Only respond when the logout key changes.
Report a full clear when the key is null.
Confirm a storage listener was actually attached.
The storage event never fires in the tab making the change.
The handler is looking at the wrong property name.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspaceA full clear sets key to null, not undefined.
The event is listened for on window, not on localStorage.
The old value should come before the new one.