II - B - The Variables
$ before a string means that we are talking about a variable, it is called as you want then, but never focus or space in a variable name.
A variable is typed: it may take 4 types (in order below):
The types of variables :
- string
- integer (whole number)
- bool (Boolean binary logic means such true or false)
- float (real number)
Study well every detail:
- All instructions (all) end with a semicolon (;).
- Only the variable string requires quotes (single or double quotes prefer for the moment, we will see why later) ...
- The boolean is true, but without quotation marks, it has the opposite ... false.
- The actual number is a point in Anglo-Saxon and not a comma ...
Feel free to customize these examples and the grind by changing the data to assimilate.








0 comments:
Post a Comment