The phenomenon you're referring to is known as the double-slit experiment, which demonstrates the wave-particle duality of particles like electrons. It shows that even though electrons are considered particles, they can also exhibit wave-like properties under certain experimental conditions.
In the double-slit experiment, a beam of particles (such as electrons or photons) is directed towards a barrier with two narrow slits. On the other side of the barrier, a screen is