Why can calculators work? Tell me from the perspective of digital electronics,

Why can calculators work? Tell me from the perspective of digital electronics,

First, with BJT, then MOSFET, you can make up and, or, not these three basic circuits. Can you understand? Then you can make up addition and subtraction, then you have register, then you have buffer and latch, and then you can make up all of them