- 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.
15 lines
434 B
JavaScript
15 lines
434 B
JavaScript
const learningStatus = "review";
|
||
const records = ["变量", "条件", "函数", null, "对象"];
|
||
|
||
let optionalNote;
|
||
const finalComment = null;
|
||
let statusText = "";
|
||
const finishedRecords = [];
|
||
|
||
// 任务:
|
||
// 1. 用 switch 给 learningStatus 生成说明文字
|
||
// 2. 输出 optionalNote 和 finalComment 分别是什么
|
||
// 3. 用 for 循环读取 records
|
||
// 4. 如果遇到 undefined 或 null,就 break
|
||
// 5. 输出 finishedRecords
|