New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN: 9781305503922
Author: Patrick M. Carey
Publisher: Cengage Learning
Question
Book Icon
Chapter 9, Problem 5RA

(a)

Program Plan Intro

To create a Date object that contains the date May 19, 2018 at 9:31:27 a.m and store it in the variable named thisDay.

(b)

Program Plan Intro

To declare two variable named localDate and localTime. The localDate variable contains the text of the date from the thisDay variable using local conventions. The localTime variable contains the text of the time stored in the thisDay variable using local conventions.

(c)

Program Plan Intro

To write the code for datetime where date and time are the values of the localDate and localTime variables, Within the inner HTML of the page element with the ID currentTime.

(d)

Program Plan Intro

To Call the nextJuly4() function using thisDay as the parameter value and store the date returned by the function in the j4Date variable..

(e)

Program Plan Intro

To apply the setHours() method to the j4Date variable to change the hours value to 9 p.m..

(f)

Program Plan Intro

To create variables named days, hrs, mins, and secs containing the days, hours, minutes, and seconds until 9 p.m. on the next 4th of July.

(g)

Program Plan Intro

To Change the text content of the elements with the IDs “dLeft”, “hLeft”, “mLeft”, and “sLeft” to the values of the days, hrs, mins, and secs variables rounded down to the next lowest integer.

Blurred answer
Students have asked these similar questions
Need help with this   Create a function named FahrenheitToCelsius() containing a single parameter named degree. Insert a statement that returns the value of degree minus 32 and then divided by 1.8. Create a function named CelsiusToFahrenheit() containing a single parameter named degree. Insert a statement that returns the value of degree multiplied by 1.8 plus 32. Add an onchange event handler to the element with the id “cValue”. Attach an anonymous function to the event handler and within the anonymous function do the following: Declare a variable named cDegree equal to the value of the element with the id “cValue”. Set the value of the element with the id “fValue” to the value returned by the CelsiusToFarenheit() function using cDegree as the parameter value. Add an onchange event handler to the element with the id “fValue”. Attach an anonymous function to the event handler and within the anonymous function do the following: Declare a variable named fDegree equal to the value…
3. Which among the following shows a valid use of the Direction enumeration as a parameter to the moveCharacter function? Select al that apply. enum Direction {  case north, south, west, east}func moveCharacter(x: Int, y: Int, facing: Direction) {// code here}   moveCharacter(x: 0, y: 0, facing: .southwest)   moveCharacter(x: 0, y: 0, facing: Direction.north)   moveCharacter(x: 0, y: 0, facing: .south)   moveCharacter(x: 0, y: 0, facing: Direction.northeast)
In cell B8, create a formula without using a function that multiplies the value in cell B7 by the value in cell B6 and then adds the value in B7. In this formula, use a mixed reference for cell B6 by including an absolute reference to row 6. Copy the formula from cell B8 to the range B9:B11 and then copy the formulas from the range B8:B11 to the range C8:H11.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage