The core of any language whether spoken or used by computers is its syntax. This provides a set of rules that must be followed when you use that language. While spoken languages often have many exceptions to the various syntax rules, computer languages are much stricter in requiring the rules to be followed. Computers are not as smart as people and so need to be told exactly what to do step by step. While a person may be able to interpret instructions so as to work out what to do when you leave out a step in the instructions, a computer will follow your instructions exactly as written. Understanding the syntax rules that the computer will use to interpret your instructions is essential to instructing the computer correctly in what you want it to do.
We'll explore several key concepts related to variables and operators in this series, such as
- How to use operators with numbers and text strings.
- What happens when you combine different types of variable together.
This tutorial first appeared on www.felgall.com and is reproduced here with the permission of the author.