From a0e9a6a114b60093e74eb8b5c644b5aebddaa743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=87=E7=90=B3?= <1955441771@qq.com> Date: Tue, 29 Oct 2024 05:49:25 +0000 Subject: [PATCH] zuoye MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈文琳 <1955441771@qq.com> --- .../\344\275\234\344\270\232.md" | 58 +++++++++++++ .../3.md" | 46 ++++++++++ ...2-JavaScript\347\254\25401\345\244\251.md" | 83 +++++++++++++++++++ .../1.html" | 24 ++++++ .../2.html" | 44 ++++++++++ .../3.html" | 21 +++++ .../4.html" | 24 ++++++ .../5.html" | 20 +++++ .../6.html" | 42 ++++++++++ 9 files changed, 362 insertions(+) create mode 100644 "\351\231\210\346\226\207\347\220\263/241024\345\210\235\350\257\206js/\344\275\234\344\270\232.md" create mode 100644 "\351\231\210\346\226\207\347\220\263/241025js\345\237\272\347\241\200\347\273\203\344\271\240/3.md" create mode 100644 "\351\231\210\346\226\207\347\220\263/241025js\345\237\272\347\241\200\347\273\203\344\271\240/\344\270\200\343\200\201\346\257\217\346\227\245\344\275\234\344\270\232-JavaScript\347\254\25401\345\244\251.md" create mode 100644 "\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/1.html" create mode 100644 "\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/2.html" create mode 100644 "\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/3.html" create mode 100644 "\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/4.html" create mode 100644 "\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/5.html" create mode 100644 "\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/6.html" diff --git "a/\351\231\210\346\226\207\347\220\263/241024\345\210\235\350\257\206js/\344\275\234\344\270\232.md" "b/\351\231\210\346\226\207\347\220\263/241024\345\210\235\350\257\206js/\344\275\234\344\270\232.md" new file mode 100644 index 0000000..f913bdb --- /dev/null +++ "b/\351\231\210\346\226\207\347\220\263/241024\345\210\235\350\257\206js/\344\275\234\344\270\232.md" @@ -0,0 +1,58 @@ +```html + + + + + + Document + + + + + + +``` + diff --git "a/\351\231\210\346\226\207\347\220\263/241025js\345\237\272\347\241\200\347\273\203\344\271\240/3.md" "b/\351\231\210\346\226\207\347\220\263/241025js\345\237\272\347\241\200\347\273\203\344\271\240/3.md" new file mode 100644 index 0000000..179eb2e --- /dev/null +++ "b/\351\231\210\346\226\207\347\220\263/241025js\345\237\272\347\241\200\347\273\203\344\271\240/3.md" @@ -0,0 +1,46 @@ +```html + + + + + + Document + + + + + + +``` + diff --git "a/\351\231\210\346\226\207\347\220\263/241025js\345\237\272\347\241\200\347\273\203\344\271\240/\344\270\200\343\200\201\346\257\217\346\227\245\344\275\234\344\270\232-JavaScript\347\254\25401\345\244\251.md" "b/\351\231\210\346\226\207\347\220\263/241025js\345\237\272\347\241\200\347\273\203\344\271\240/\344\270\200\343\200\201\346\257\217\346\227\245\344\275\234\344\270\232-JavaScript\347\254\25401\345\244\251.md" new file mode 100644 index 0000000..751a81e --- /dev/null +++ "b/\351\231\210\346\226\207\347\220\263/241025js\345\237\272\347\241\200\347\273\203\344\271\240/\344\270\200\343\200\201\346\257\217\346\227\245\344\275\234\344\270\232-JavaScript\347\254\25401\345\244\251.md" @@ -0,0 +1,83 @@ +# 一、每日作业-JavaScript第01天 + +## 简答题 + +1.依次说明下面各打印语句的输出结果? + +```js + const num = 10 + console.log( num + 11) 21 + console.log( num + '11') 1011 + console.log( num + +'11') 21 +``` + +2.依次说明下面各打印语句的输出结果 + +```html +const num = 10 +console.log( typeof num + '11') number +console.log( typeof (num + '11')) string +console.log( typeof (num + +'11')) number +``` + +## 编程题 + +### 获取用户信息 + +- 题目描述 + + 依次询问并获取用户的姓名、年龄、性别,收集数据之后在控制台依次打印出来。 + + 具体表现如下图: + +![img](https://gitee.com/md-class-1-grade-23/java-script-basic-applications/raw/master/%E6%B1%9F%E6%99%BA%E6%9D%B0/20241025%20js%E5%9F%BA%E7%A1%80%E4%BD%9C%E4%B8%9A/01-%E9%A2%98%E7%9B%AE/images/%E5%9B%BE%E7%89%871.png) ![img](https://gitee.com/md-class-1-grade-23/java-script-basic-applications/raw/master/%E6%B1%9F%E6%99%BA%E6%9D%B0/20241025%20js%E5%9F%BA%E7%A1%80%E4%BD%9C%E4%B8%9A/01-%E9%A2%98%E7%9B%AE/images/%E5%9B%BE%E7%89%874.png) + +- 题目提示 + - 通过prompt来弹出提示框,收集用户信息 + - 通过变量保存数据 + +### 增加年龄 + +- 题目描述 + + 1、询问用户年龄,用户输入年龄后,把用户输入的年龄增加5岁 + + 2、增加5岁后,通过弹出框提示用户 “ 据我估计,五年后,你可能XX岁了” + + + + + + + +- 题目提示 + + - 通过prompt来弹出提示框,收集用户信息 + - 通过变量保存数据 + - 转换数据类型(需要预习第二天的数据类型转换哟) + +### 计算银行卡余额案例 + +- 题目描述 + + 1、用户输入总的银行卡金额,依次输入本月花费的电费,水费,网费。 + + 2、页面打印一个表格,计算出本月银行卡还剩下的余额。 + + + +- 题目提示 + + - 思路: + + 1.我们需要5个变量:银行卡总额、水费、电费、网费、银行卡余额 + + 2.银行卡余额= 银行卡总额 – 水费 –电费 - 网费 + + 3.第一步准备5个变量接受输入的数据 + + 4.第二步计算银行卡余额 + + 5.第三步页面打印生成表格,里面填充数据即可。 + + 6.当然可以提前把html页面搭好。 \ No newline at end of file diff --git "a/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/1.html" "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/1.html" new file mode 100644 index 0000000..ccbe986 --- /dev/null +++ "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/1.html" @@ -0,0 +1,24 @@ + + + + + + Document + + + + + + \ No newline at end of file diff --git "a/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/2.html" "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/2.html" new file mode 100644 index 0000000..92df015 --- /dev/null +++ "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/2.html" @@ -0,0 +1,44 @@ + + + + + + + Document + + + + + + + + \ No newline at end of file diff --git "a/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/3.html" "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/3.html" new file mode 100644 index 0000000..13d0940 --- /dev/null +++ "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/3.html" @@ -0,0 +1,21 @@ + + + + + + Document + + + + + + \ No newline at end of file diff --git "a/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/4.html" "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/4.html" new file mode 100644 index 0000000..1df9929 --- /dev/null +++ "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/4.html" @@ -0,0 +1,24 @@ + + + + + + Document + + + + + + \ No newline at end of file diff --git "a/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/5.html" "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/5.html" new file mode 100644 index 0000000..92b91d4 --- /dev/null +++ "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/5.html" @@ -0,0 +1,20 @@ + + + + + + Document + + + + + \ No newline at end of file diff --git "a/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/6.html" "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/6.html" new file mode 100644 index 0000000..a685c35 --- /dev/null +++ "b/\351\231\210\346\226\207\347\220\263/241028js\345\210\244\346\226\255\347\273\203\344\271\240/6.html" @@ -0,0 +1,42 @@ + + + + + + Document + + + + + + \ No newline at end of file -- Gitee