Is a watt a unit of power or a unit of electrical energy?

Watt is a unit of power. 1 Watt = 1 Joule/second; joule is the unit for energy.