Solution 要做什麼
對照完整答案、責任邊界與原因。
本主題檔案:files/main.js
定位:先在 Console 看 typeof total,再看比較式。
Solution · code-edit
對照完整答案、責任邊界與原因。
對照完整答案、責任邊界與原因。
本主題檔案:files/main.js
定位:先在 Console 看 typeof total,再看比較式。
頁面不會替你修改檔案;請在實作檔完成後重新整理確認。
輸出尚無比較結果與分支。
comparison=true、branch=eligible,且 inputType=number。
const eligible = total >= 1000;if (eligible) 顯示符合資格。只在本階段資料夾內操作,避免改到其他章節。
index.htmlstyle.cssmain.js證據:inputType=number、comparison=true、branch=eligible
回到主題說明