Unit 5 Lesson 8 Code "Answer" Available? global var vs. local var?

csp-unit-5-lesson-8

#1

Is there a code “guide”/answer available for all the Unit 5 Lessons?

It seems like the weekday variable needs to be declared inside the onEvent for it to work, but even if it’s declared outside of it, shouldn’t it still work?

Thank you for your comments/advice.