diff --git "a/\347\216\213\346\227\213/20241025 js\345\237\272\347\241\200\345\267\251\345\233\272.md" "b/\347\216\213\346\227\213/20241025 js\345\237\272\347\241\200\345\267\251\345\233\272.md" new file mode 100644 index 0000000000000000000000000000000000000000..968580029a46eafeecc0c325b4fa8f3fb0bac6c5 --- /dev/null +++ "b/\347\216\213\346\227\213/20241025 js\345\237\272\347\241\200\345\267\251\345\233\272.md" @@ -0,0 +1,186 @@ +# 一、每日作业-JavaScript第01天 + +## 简答题 + +1.依次说明下面各打印语句的输出结果? + +```javascript + const num = 10 + console.log( num + 11) 21 + console.log( num + '11') 1011 + console.log( num + +'11')21 +``` + +2.依次说明下面各打印语句的输出结果 + +```javascript +const num = 10 +console.log( typeof num + '11') number +console.log( typeof (num + '11'))string +console.log( typeof (num + +'11'))number +``` + +## 编程题 + +### 获取用户信息 + +- 题目描述 + + 依次询问并获取用户的姓名、年龄、性别,收集数据之后在控制台依次打印出来。 + + 具体表现如下图: + +- 题目提示 + - 通过prompt来弹出提示框,收集用户信息 + - 通过变量保存数据 + +```js + + +
+ + +