If it doesn't lose any energy to friction in the pivot or air resistance, and nobody touches it while it's swinging, then ...
-- the energy it has is constant, and never changes
-- it's all potential energy at the highest point of the swing
-- it's all kinetic energy at the lowest point of the swing
-- it's part potential and part kinetic anywhere between the highest and lowest points.
The pendulum in this question has 540J of potential energy at the highest point, and 540J of kinetic energy at the lowest point.