Files
charlie 877acb5a8f feat: Add JavaScript core exercises and solutions
- Implemented exercises for array high-order methods, memory and execution, switch statements, and final review.
- Added starter and answer files for each exercise to facilitate learning.
- Created a runner HTML file to execute JavaScript code and display console outputs.
- Updated README files to include exercise objectives, tasks, and usage instructions.
2026-03-13 11:09:19 +08:00

28 lines
655 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 练习 1变量和控制台输出
## 目标
学会声明变量、修改变量,并把结果打印出来。
## 你要练什么
- `const`
- `let`
- 字符串拼接
- `console.log()`
## 任务
请完成一个“学习档案”输出脚本,要求:
- 声明用户名
- 声明当前学习阶段
- 声明已完成练习数
- 修改一次学习阶段或练习数
- 最后输出 3 行清晰的结果
## 文件
- [starter.js](/Users/lijiaqing/home/wwwroot/front-end-example/03-javascript-core/01-variables-and-console/starter.js)
- [answer.js](/Users/lijiaqing/home/wwwroot/front-end-example/03-javascript-core/01-variables-and-console/answer.js)