A small game written in JavaScript

by stilling2006 on 2008-11-20 21:04:41

```javascript

9) ? iSecs : "0" + iSecs);

var sMins = "" + ((iMins > 9) ? iMins : "0" + iMins);

var tme = sMins + ":" + sSecs;

document.form1.count.value = tme;

}

-->

```

### Explanation:

- The script is written in JavaScript and is used to create a simple stopwatch functionality.

- It calculates the elapsed time in seconds and formats it into minutes and seconds.

- The `Stopwatch` function calculates the elapsed time since `clockStart`.

- The `getSecs` function updates the displayed time in the format `mm:ss`.