Hybrid and electric cars both have regenerative braking systems, which transfer the energy otherwise lost as heat back into electricity, by switching the motor’s function from its normal one into an electricity generator when the driver pushes the brake pedal.