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

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.

There are example solutions for each level. Open the teacher panel on the right and you should see a button that says “example solution.” Is that what you’re asking for?

Ah. Thank you so much for this information. Hadn’t noticed/seen it before. :slight_smile: