Now that the basic syntax is no longer a mystery, let's get into the finer details of variable statements. Since we read code from left to right, it makes sense to begin our variable deep-dive with a topic we haven't discussed yet: access modifiers.
Take a quick look back at the variables we used in LearningCurve and you'll see they had an extra keyword at the front of their statements:public. This is the variables access modifier. Think of it as a security setting, determining who and what can access the variable's information.
If you include a modifier, the updated syntax recipe looks like this:
accessModifier dataType uniqueName = value;
While access modifiers aren't necessary to declare a variable, it's a good habit to get into as a new programmer. That extra word goes a long way toward readability...