Digital Clock in JS

I am new to javascript and could use some help. The clocks format is not in 12-hr and I am also having trouble withit continuing to run automatically. Thank you in advance!