Transistor
One of the ways to implement logic gates is building it in transitor. Click the link below to see how to N-channel transistor.
This is one of the circuit from the short video from the link
Here's the short video to watch
© Jochelle Viray.