00:01
All right.
00:03
Continuing with our cs learning journey, talking about variables, these kind of key building blocks to our program, and just extending on the idea of variable declarations and talking a little bit about when do we declare.
00:18
Now, there's going to be different, different kind of applications of this, depending on what types of code you're writing, whether you're writing object oriented programming code, because you're dealing with objects.
00:31
And you need to have like field variables, or if you're writing just a standard one file program like you'll be doing when you're learning.
00:38
And, you know, so it's not always cut and dry, but the number one thing that's the most important to remember with declaring variables is that you have to declare the variable before you try to access or reference the variable.
00:52
Because remember, the code doesn't know the names that you want to use unless you tell it what they are.
00:58
It only knows its own reserved words.
01:00
So if you try to do something like this, display test, declare a new string called test, set the test variable to the literal string, hey, and then display test, well, it's not going to work...