Simplify VIMX training docs and remove extra file
Restructure the training guide into focused tasks with warmed-up basics and updated exercises, and drop practice2.ts from the project tree.
This commit is contained in:
@@ -53,7 +53,7 @@ function getUserNames(list: any[]) {
|
||||
}
|
||||
|
||||
function getAdultUsers(list: any[]) {
|
||||
return list.filter((u) => u.age < 18); // ← 问题 3:条件写反了,应该是 >= 18
|
||||
return list.filter((u) => u.age >= 18);
|
||||
}
|
||||
|
||||
console.log("debug: users =", users); // ← 问题 1:调试残留,上线前删掉
|
||||
|
||||
Reference in New Issue
Block a user