Variables in programming are things that are assigned values and used in the following code after it. Variables are commonly referred back to when a certain value needs to be taken and used to work something else out further on.
Below is a part of an email checker that I created previously

In this code the two variables known as "foundAT" and "foundDot" are assigned values and as you can see, are later brought back up to work out whether the email entered is valid or invalid and depending on what changes with these two values final outcomes will be produced to state the final answer
Naming Conventions
In computer programming a naming convention is a set of rules for choosing the character sequence to be used for identifiers which denote variables , types functions and other entities in source code and documentation.
No comments:
Post a Comment