@@ -91,6 +91,12 @@
console.log("foo12")
}
+ function foo13(){
+ var a = 10;
+ }
+ function foo14(){
+ var a = 20;
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Document</title>
+</head>
+<body>
+ <script>
+ function f(x){
+ var res = (4*x*x)+(3*x)+2;
+ console.log(res);
+ f(1)
+ </script>
+</body>
+</html>
@@ -0,0 +1,28 @@
+
+ function f(x, y) {
+ if(x>y){
+ console.log("y最小"+y);
+ }else{
+ console.log("x最小"+x);
+ var a = window.prompt("请输入第一个值");
+ var b = window.prompt("请输入第二个值");
+ a *= 1;
+ b *= 1;
+ f(a,b);