嘿,我現(xiàn)在正在嘗試使用 TwilioQuest 學(xué)習(xí) JavaScript,但我遇到了似乎無法解決的問題。我正在嘗試更正錯誤“SyntaxError: Unexpected Identifier”。當(dāng)我嘗試運行這段代碼時,我得到了。Function getLaserSetting(magicWord) { if (magicWord === 'please') { return 'OFF'; } else { Return 'ON'; }}const currentSetting = get LaserSetting('please');console.log('The current laser setting is' + currentSetting);原始代碼是:function getLaserSetting(magicWord) { if (magicWord === 'the magic word here') { return 'what should this be?'; } else { return 'ON'; }}const currentSetting = getLaserSetting('right now!');console.log('The current laser setting is: ' + currentSetting);
語法錯誤:TwilioQuest 中的意外標(biāo)識符
富國滬深
2022-12-09 16:57:27