From 88e0210bdceb337d0979ae756106c11abb24b0c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=BB=B4?= <1650174932@qq.com> Date: Mon, 29 Apr 2019 23:59:51 +0800 Subject: [PATCH] =?UTF-8?q?1=E5=88=B06=E9=A2=98=E7=9A=84=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=EF=BC=8C=E5=85=B6=E4=B8=AD=E7=AC=AC=E4=BA=8C=E9=A2=98=20?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E9=97=AE=E9=A2=98=20=E6=89=BE=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E5=8E=9F=E5=9B=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.js | 11 +++++++++++ 2.js | 40 ++++++++++++++++++++++++++++++++++++++++ 4.js | 16 ++++++++++++++++ 5.js | 12 ++++++++++++ 6.js | 17 +++++++++++++++++ 5 files changed, 96 insertions(+) create mode 100644 1.js create mode 100644 2.js create mode 100644 4.js create mode 100644 5.js create mode 100644 6.js diff --git a/1.js b/1.js new file mode 100644 index 0000000..9e7ba85 --- /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 0000000..7899a8a --- /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