lemon juice as a preservative?

why does lemon juice prevent apple slices from turning brown? how would putting a base or neutral substance on an apple compare?

It reacts with free oxygen so the oxygen doesn’t react with the fruit enzymes that cause the browning.