4/6 I'm stuck


#1

I'm new here and I've been stuck on this problem. Please help!
What did I do wrong?
var morningAlarm = '6:30AM';
morningAlarm = '9:00AM';
console.log('Morning alarm is set to: ', morningAlarm);


#2

When you set it to 6:30Am, you need to run it.
After you run it, then you change the time and run it again.


#3

You have defined to morningAlarm variables you only need one,

Erase one line. :grin:


#4

Thanks for replying :relaxed: You mean I shouldn't have the third line console.log('Morning alarm is set to: ', morningAlarm); ?


#5

Thanks for your reply.:slight_smile: I did try that but I still didn't see change.


#6

I think that @javascriptjoee is correct, but I think you need to concatenate with a plus sign in your console.log like this:

console.log('Morning alarm is set to: ' + morningAlarm);

#7

I just used what you wrote and it's still giving me the "oops sign". :frowning:


#8

I've been trying for days.lol Thank you for your help tho :relaxed:


#9

Do step by step.At frist complete 1st instruction then go for the second.

and you have to do the same what instruction says even a single space.


#10

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