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.

0 Likes

#2

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?

0 Likes

#3

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

Gracias.

0 Likes