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 0000000000000000000000000000000000000000..0e6694fdac2a1cc2537ff6893270558c2b7298dd --- /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来弹出提示框,收集用户信息 + + - 通过变量保存数据 + + ``` + + +
+ + +