Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a javascript to the HTML file below that captures the current time of the day when page is accessed. For example if check the
Write a javascript to the HTML file below that captures the current time of the day when page is accessed. For example if check the page at 9:30 am, the java script should capture the time. If check again at 4:30 pm, it should show this time too, also need to use looping to print lines.
Based on the time of the day the page is checked, the java script should display two different contents (with looping statements). If the time is from 0:00 and 11:59, the page display the following:
L TARGET PRACTICE FOR YOUR MIND The Area of a circle with radius of 1 meters) is 3.14square meters The Area of a circle with radius of 2 meter(s) is 12.56square meters The Area of a circle with radius of 3 meter(s) is 28.26square meters The Area of a circle with radius of 4 meter(s) is 50.24square meters The Area of a circle with radius of 5 meter(s) is 78.50square meters The Area of a circle with radius of 6 meter(s) is 113.04square meters The Area of a circle with radius of 7 meter(s) is 153.86square meters The Area of a circle with radius of 8 meter(s) is 200.96square meters The Area of a circle with radius of 9 meter(s) is 254.34square meters The Area of a circle with radius of 10 meter(s) is 314.00square meters If the time is from 12:00 to 23:59, your page should display: BULLSEYE TARGET PRACTICE FOR YOUR MIND The Area of a square with sides of 1 meters(s) is 1square meters The Area of a square with sides of 2 meters(s) is 4square meters The Area of a square with sides of 3 meters(s) is 9square meters The Area of a square with sides of 4 meters(s) is 16square meters The Area of a square with sides of 5 meters(s) is 25square meters The Area of a square with sides of 6 meters(s) is 36square meters The Area of a square with sides of 7 meters(s) is 49square meters The Area of a square with sides of 8 meters(s) is 64square meters The Area of a square with sides of 9 meters(s) is 81square meters The Area of a square with sides of 10 meters(s) is 100square metersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started