- 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.
627 B
627 B
练习 7:对象
目标
学会用对象描述一个事物的多个属性。
你要练什么
- 对象字面量
- 属性读取
- 属性修改
- 新增属性
任务
请完成一个“课程对象”脚本,要求:
- 创建一个课程对象
- 至少包含名称、课时、是否完结
- 修改其中一个属性
- 新增一个老师属性
- 输出完整对象和其中两个单独属性