Water heater having anode bar loss detection prompting function and control method thereof

Provided are a water heater having an anode bar loss detection prompting function and a control method thereof. The water heater comprises an inner container arranged inside a housing, an anode bar, an electric heating tube and a control mainboard responsible for water heater control, wherein the anode bar and the electric heating tube are installed inside the inner container. The water heater further comprises a current detection circuit, wherein the current detection circuit is connected with an alarm prompting circuit and is installed outside the inner container. The control method of the water heater comprises the steps of 1S starting the control mainboard of the water heater, supplying water and electricity for the water heater and starting a water heater heating circuit, 2S detecting the loss situation of the anode bar, and 3S enabling the water heater heating circuit and the current detection circuit to be automatically powered off when the temperature of the water heater is up to predetermined temperature. The water heater can automatically detect protective current according to the actual using environments of different uses and self factors and judge the loss situation of the anode bar, and it is ensured that the anode bar conducts comprehensive protection on the electric heater and the inner container.