Home > Articles

This chapter is from the book

Exercises

  • arrow1.jpg Add a millisecond field to the large clock. You can use the getMilliseconds function, which works just like getSeconds but returns milliseconds.

  • arrow1.jpg Modify the script to display the time, including milliseconds, twice. Notice whether any time passes between the two time displays when you load the page.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.