HTML and CSS Reference
In-Depth Information
You've completed the countdown clock for the New Year's Bash. Hector will continue
to work on the event's Web site and get back to you with any new projects or concerns.
Session 11.2 Quick Check
1. How do you use a unary operator to increase the value of the thisMonth variable
by 1?
2. How do you use an assignment operator to increase the value of the thisMonth
variable by 1?
3. Provide code to round the value of the thisMonth variable to the nearest integer.
4. What conditional operator changes the value of the thisMonth variable to 12 if it
equals 11 but otherwise leaves the value unchanged?
5. What function tests whether the value of the thisMonth variable is a number?
6. Provide code to display the value of the thisDay variable with no decimal places.
7. What statement runs the function calcMonth() after a 0.5-second delay?
8. What statement runs the function calcMonth() every 0.5 seconds?
Search WWH ::




Custom Search