diff --git a/1.js b/1.js new file mode 100644 index 0000000000000000000000000000000000000000..9e7ba85beff75dd75caeeefff9b459d462a22bfa --- /dev/null +++ b/1.js @@ -0,0 +1,11 @@ +function maxx(a,b) +{ + if (a=1 && i<=10){ + console.log(i); + i-=1; +} + */ \ No newline at end of file diff --git a/4.js b/4.js new file mode 100644 index 0000000000000000000000000000000000000000..7899a8a74827a9691f573ed1cdf9b5f4fa58143b --- /dev/null +++ b/4.js @@ -0,0 +1,16 @@ +/* 4. 创建一个函数,用以找到三个数中最大的数并返回。例如:给函数传递参数6、4、5,返回6。 */ + +function max(a,b,c) +{ + if (a>b){ + max=a; + }else{ + max=b + } + if (max