【翻譯】通過創建角色扮演遊戲學習基礎 JavaScript 步驟 104

Step 104

Inside the if statement, set gold equal to 15 more than its current value. Also update goldText.innerText to the new value.

步驟 104

if 語句中,將 gold 設置爲比其當前值大 15 的值。 還將 goldText.innerText 更新爲新值。

語意似乎是……
if 語句內,將 gold 的值設為當前值加 15。同時更新 goldText.innerText 為新的值。

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.