From 393a36d76a3a6b059e4028fc972610ab9b08630e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BE=88=E7=8B=87?= <1706442984@qq.com> Date: Mon, 28 Oct 2024 01:18:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20241025\344\275\234\344\270\232.md" | 191 ++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 "\351\231\210\346\231\272\345\256\217/20241025\344\275\234\344\270\232.md" diff --git "a/\351\231\210\346\231\272\345\256\217/20241025\344\275\234\344\270\232.md" "b/\351\231\210\346\231\272\345\256\217/20241025\344\275\234\344\270\232.md" new file mode 100644 index 0000000..0e6694f --- /dev/null +++ "b/\351\231\210\346\231\272\345\256\217/20241025\344\275\234\344\270\232.md" @@ -0,0 +1,191 @@ +# 一、每日作业-JavaScript第01天 + +## 简答题 + +1.依次说明下面各打印语句的输出结果? + +``` + const num = 10 + console.log( num + 11) // 21 + console.log( num + '11') //1011 + console.log( num + +'11') //21 +``` + +2.依次说明下面各打印语句的输出结果 + +``` +const num = 10 +console.log( typeof num + '11') // number11 +console.log( typeof (num + '11'))// string +console.log( typeof (num + +'11')) // number +``` + +## 编程题 + +### 获取用户信息 + +- 题目描述 + + 依次询问并获取用户的姓名、年龄、性别,收集数据之后在控制台依次打印出来。 + + 具体表现如下图: + +- 题目提示 + + - 通过prompt来弹出提示框,收集用户信息 + + - 通过变量保存数据 + + ``` + + +
+ + +