Add watch expressions in DevTools to monitor values:
- In Sources panel, find the Watch section
- Click + to add expressions like
user.nameoritems.length - Values update as you step through code
Watch expressions help track how data changes during execution.