Logic gates are the fundamental building blocks of every computer ever made. Every decision your device takes — from checking a password to rendering a pixel — ultimately comes down to billions of these tiny circuits asking simple true-or-false questions. In this interactive demo you can flip inputs on AND, OR, NOT, and XOR gates and watch the outputs change live, then test yourself with a quick quiz to check you've got it.
This article and its interactive demo were created with the help of generative AI and editorially reviewed.
