This is a small script that can display the current time in “Military Time” format or “12 Hour Time” format with the push of a button.

Many people confuse about JavaScript array [] and object {}, so this tutorial will explain the difference in between JavaScript {} and []