AND Gate simulation


Enter the JavaScript code to simulate the AND gate working.