Can I get some assistance with context usage?
I'm new to all of this and I've been trying to learn and understand for about a week now. I can't seem to get the value of 10 to display in the second example.
Why does this work
But this one doesn't?
2 Replies
You're accessing the context above
Parent
Context is like a tree/line. So where you access it, it will try to look up and get the context. Above the point where you're accessing context in the second example, there isn't a context definedThanks a million. As soon as I read your reply, I knew what to do. I've refactored it in several ways to ensure I've understood the concept well enough and it all works. Thanks a million!