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
627 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.

# 练习 7对象
## 目标
学会用对象描述一个事物的多个属性。
## 你要练什么
- 对象字面量
- 属性读取
- 属性修改
- 新增属性
## 任务
请完成一个“课程对象”脚本,要求:
- 创建一个课程对象
- 至少包含名称、课时、是否完结
- 修改其中一个属性
- 新增一个老师属性
- 输出完整对象和其中两个单独属性
## 文件
- [starter.js](/Users/lijiaqing/home/wwwroot/front-end-example/03-javascript-core/07-objects/starter.js)
- [answer.js](/Users/lijiaqing/home/wwwroot/front-end-example/03-javascript-core/07-objects/answer.js)