var Todey = new Date (),
The name is his new date object.
Year = Todey. getFullYear (),
Name year
month = Todey.getmonth () +1,
Name Month
Day = Todey.getdate (),
Take the name of the day
Hours = Todey.gethours (),
When you take your name
minutes = Todey.getminutes (),
The name of the word share
seconds = Todey.getseconds ();
Take the name of the second part
document.write (Year + "Years");
document.write (month + "months");
document.write (Day + "Days");
document.write (Hours + "time");
document.write (minutes + "min");
document.write (Seconds + "SEC");
document.write ("<br/>");
Array
var arr1=new Array (1,2,3,4,5,6,7,8);
var arr2=["A", "B", and "a";
Console.log (ARR2);
document.write (Arr2[0]);
document.write ("<br/>");
var weekly = [' Sunday ', ' Monday ', ' Tuesday ', ' Wednesday ', ' Thursday ', ' Friday ', ' Saturday '];
Console.log (weekly);
document.write (Weekly[0]);
document.write ("<br/>");
var i=1,
d=t;
document.write (I+B); I+b the results of the addition
document.write ("<br/>");
function br () {
document.write ("<br/>");
}
document.write (i-b); i-b out of the results
BR ()
document.write (i*b); I multiply the result of B
BR ()
document.write (i/b); Results of I except B
document.write ("<br/>");
document.write (i%b);//In the browser open I except B In addition to the result of not finished
BR ()
Console.log (i+b);//Print in console
alert (I*B);
alert (i/b);//pop-up window
var a=23.33,
b=3232.84;
document.write (parseint (a) +parseint (b));
Turn him into an integer.
The second lesson of JavaScript