Various other methods of pumping the amplifying medium in a laser are used. For example, laser diodes are pumped by passing an electric current across the junction where the two types of semiconductor within the diode come together.