#4: Changing a Variable's Value


#1


https://www.codecademy.com/en/courses/learn-javascript/lessons/variables/exercises/change-a-variable


The error shown is:
expected '5:00AM' to include '6
I don't know why this is happening, if someone could give me the code they used or just try to help me resolve the error that would be great


var morningAlarm = '6:30AM';
morningAlarm = '5:00AM';
console.log('Morning alarm is set to: ', morningAlarm);


#2

Not able to reproduce this error. However that is working in previously completed lesson.

Try using another time...

var morningAlarm = '6:30AM';
morningAlarm = '9:30AM';
console.log('Morning alarm is set to: ', morningAlarm);

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.