Photons and wave-particle duality

Light comes in photons of energy $E = hf$ and momentum $p = \frac{h}{\lambda}$, and matter has a wavelength $\lambda = \frac{h}{p}$, so light and electrons both diffract like waves and arrive like particles.

From AP Physics 2.