método JavaScript gethours ()

const d = new Date();
d.getHours();
naly moslih