I need a JavaScript code for implementing a dynamic timer. The code should not use inbuild functions such as get of set.