Computer's local time zone, Coordinated Universal Time (UTC).
Parse
LocalStorage
sessionStorage
:first-child
:nth-child
Question 11.2
Create a web page that contains four buttons. Each button, when clicked, should cause an alert dialog to display a different time or date in relation to the current time.Create a Now Button that alerts the current time and date and a Yesterday button that alerts the time and date ten years ago and one week from today.
Question 11.3
Write a script that test as many of the Math library functions in Fig. 11.1 as you can.
Question 11.4
Math method floor may be used to round a number to a specific decimal place.
For example, the statement y = Math.floor( x * 100 + .5) /10;
rounds x to the tenths postion. Write a script that defines four funxtions to round a number x in various ways:
Round To Integer ( number)
Round To Tenths( number )
Round To Hundredths( number )
Roud To Thousandths( number )
Question 11.5
Modify the solution to Exercise 11.4 to use Math Method round instead of mathod floor.
11.6
Write a script that uses relational and equality operator to compare two Strings input by the user through an HTML5 form.
Display whether the first string is less than, equal to or greater than the second.