Wednesday, June 16, 2004

Exercise[20]

Ready... Set...
  1. First, read (and comprehend!) Timer (JavaScript) or Timer (Java).
  2. Second, read the JavaScript version or Java version of You complete me - stop.
  3. Third, figure out what code you can provide that would complete the pause function/method.
  4. Finally, produce and test a JavaScript or Java program that includes an instance of a Timer object and your implementation of pause. (Hint: the partially complete version of pause already includes an instance of a Timer object, more or less.) Make sure your program uses pause to produce some observable effect.