Course Solutions Uncategorized (Solved) : Hello M Little Bit Trouble Javascript Directions Javascript File Variable Declaration Decl Q30253640 . . . .

(Solved) : Hello M Little Bit Trouble Javascript Directions Javascript File Variable Declaration Decl Q30253640 . . . .

 

Hello,

I’m having a little bit of trouble with my JavaScript.

Directions:

JavaScript File

Variable Declaration

Declare a variable named thisTime containing aDateobject for February 3, 2018 at 3:15:28 AM.

Use the toLocaleString()method to save the text of the thisTimevariable in the timeStr variable.

Change the inner HTML code of the page element with the ID“timestamp” to the value of the timeStr variable.

Here’s what I have so far and I’m not sure why it’s notworking.

/*

New Perspectives on HTML5 and CSS3, 7th Edition
Tutorial 9
Case Problem 1

Planisphere Script
Author: (Name)
Date: (Date)

*/

var thisTime = new Date();
var timeStr = thisTime.toLocaleString();
document.getElementById(“timestamp”).innerHTML = timeStr;

Wondering if you can help.

Thanks!

Expert Answer


An answer will

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post