<! DOCTYPE html>"en">"UTF-8"> <title>Document</title> <script>/*calculates the square value of a number function add (a) {var b=math.sqrt (a); return b; } alert (Add (3));*//*//Calculates the factorial function of a number JCH (n) {var a=1; for (Var i=1;i<=n;i++) {a=a*i; } return (a); } Alert (Jch (5));*//*output!-!-!-!-!--!-!-!-!-! !- !- !- !- !- -! -! -! -! -! !- !- !- !- !- -! -! -! -! -! */ //= is the assignment = = is the judgment equal//For (Var i=1;i<=6;i++) {//if (i%2==0) {//For (Var j=1;j<=5;j++) {//document.write ("-!" + ' a '); // } //document.write (' <br></br> '); //}else{//For (Var j=1;j<=5;j++) {//document.write ("-" + "the"); // } //document.write (' <br></br> '); // } // } //maximum number of three numbers in a function/*function Maxk (a,b,c) {return Math.max (a,b,c); } alert (Maxk (60,80,100));*/</script> JavaScript Foundation Program (calculates the square value of a number, calculates the factorial of a number, outputs the maximum number of three numbers in a function)