A test that finishes before its work

A check can read the old note while a save is still running.

your task

Fix checkNote so “Stored” prints before “Checked”. Both lines must show “Review the booking”. Keep the save function, the single save call, and both messages.

The note starts as “Draft note”. The test saves “Review the booking” and then checks the stored note. Predict which message prints first. Run the starter once to check your prediction.

Starter code
or press Ctrl EnterNot run yet

cases

Not run yetSave and check the edited note

Expected output

1Stored: Review the booking
2Checked: Review the booking