Scope can be very confusing when you're just starting out, especially with variable declarations!! So, I think that it's an important concept to know early on!😆
In this thread, we'll review scopes & its weird parts😉
A thread 🧵
1⃣WTF is scope?
Scope: visibility of the variable
Basically, scope refers to how your program can see or access a variable. Normally, when you declare a variable, It has global scope, meaning that it's accessible anywhere on your code.
2⃣ Variable global scope
Variables with global scope are declared OUTSIDE a function or a loop. If a variable's scope is global, it can be accessed anywhere in the code, even inside other functions or loops.
Open Source is a great way to improve your reputation as a dev, and practice your coding skills by reading other people's code and receiving feedback!
It's also a great way to give back to the community!
Usually this is the first step. Finding a project that interests you will motivate and help you become an active contributor. But as a #CodeNewbie, or your first time contributing, your first approach might be a bit different👇
If you're a beginner, the difficulty of the issues might put you off from choosing a project you like (happened to me!). Don't worry about it, beginners can contribute to open source and add contributing experience to their resumes as well. 👇