先分辨值、變數與型別,再進入函式。
現在要做:先對照差異,再檢查 在 main.js 的「lesson-behavior-slot」對照這項變更:const businessName = "安心維護";
const servicePrice = 1200;
console.log(businessName, typeof businessName);
console.log(servicePrice, typeof servicePrice);
貼上位置:main.js 的 lesson-behavior-slot 區塊
const businessName = "安心維護";
const servicePrice = 1200;
console.log(businessName, typeof businessName);
console.log(servicePrice, typeof servicePrice);預期結果:Console 顯示文字與數字的型別。
驗收證據:Console 的 typeof 結果與原始值。
卡住時先看這裡
常見錯誤:只複製完整答案,卻沒有先理解這一項差異的責任。
第一個檢查:只對照目前差異指定的檔案與 anchor。