var morningAlarm = '6:30AM' morningAlarm = '6:33AM' console.log('morning alarm is set to: ', morningAlarm) Just a quick question, i understand how to code this set of variables however i dont understand shy you have to set the variable to '6.30AM' and then in the line below change it, why cant i directly change the variable instead of having to state the variable value under the variable? thanks, Jake.
because the exercise is trying to teach you how re-assign variable, you could do something really complicated, but that would be more confusing then helpful
Doing simply might seem silly, but is a good way to get familiar with a concept.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.