Starter 要做什麼
先看見缺口,再完成一個小修改。
本主題檔案:files/main.js
定位:先問呼叫端需要資料本身還是只需要答案。
Starter · code-edit
先看見缺口,再完成一個小修改。
先看見缺口,再完成一個小修改。
本主題檔案:files/main.js
定位:先問呼叫端需要資料本身還是只需要答案。
頁面不會替你修改檔案;請在實作檔完成後重新整理確認。
同一變數同時被當物件與 Boolean。
foundId=s2、exists=true、foundType=object、existsType=boolean。
services.find(s => s.featured) 與 services.some(s => s.featured)。只在本階段資料夾內操作,避免改到其他章節。
index.htmlstyle.cssmain.js證據:foundId=s2、exists=true、type 分別 object/boolean
前往 Checkpoint →