When electrons or light with a specific frequency pass through two different slits, they produce an interference pattern on a terminal screen placed at a specific distance behind the slits. This pattern is the result of the waves from each slit either adding together or canceling each other out to form the corresponding light and dark lines. If a series of individual electrons or photons are emitted over time, the interference pattern will gradually appear. The individual electrons or photons passing through one of the slits act as though a wave has passed through both slits.