4: Changing a Variable's Value


#1


https://www.codecademy.com/courses/learn-javascript/lessons/variables/exercises/change-a-variable?action=lesson_resume


There's an error message that says "expected '6:00AM' to include '6". I don't get what this means, my code is below


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


#2

Hmm that is a weird error message. Maybe try setting morningAlarm to a time that doesn't include the number 6.


#3

When I replace the time with 5:00AM, it still displays the same error:
expected '5:00AM' to include '6

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

#4

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