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
PayPal Gateway not configured
PayPal Gateway not configured