Start in the MakeCode simulator
Build a two-button counter before buying a board.
Build or compare
Set count to zero on start; increment on A and decrement on B; display after each event.
Test the result
Press A twice then B once. The display should show 1. Add A+B to reset.
Expected counter values
Start → 0. Press A → 1. Press A → 2. Press B → 1. Press A+B → 0. If the simulator shows the wrong value, check whether your display block runs before or after the variable changes.