Simulate logic gates?

How do I make a logic gate simulate?

Click any input to switch it between 1 and 0 — the output updates instantly so you can see the gate’s truth table come alive. Try it here: Logic Gates Observation – online circuit simulation | DCACLab