JavaScript Code Snippets JavaScript: Creating a Down Counter 5 years ago Article Example: A counter that will count down from 20 in one second intervals.