Digital Time Clock

Hey Guys,
I did a code along on making a “digital clock”. However i realized that when the seconds hit the 60 mark, my hours reset down to zero and start to climb back up. I added the link to my codepen here. Any advice will help!

https://codepen.io/jmrtinz15/pen/rbYJbW

Look at 2nd and 3rd if statement code blocks. Why are you reassigning a value to hours based on mins or secs?

Yep. Definitely had a dumb moment there. Thanks for the help!