Chapter 6: Bosque Statements
A programming language is made up of a series of syntactic rules defined by a specific syntax. This syntax contains units called statements, representing a particular action, controlling the execution flow, or performing a specific action.
Recognizing and understanding the use of statements when writing programs allows us to identify the intention of the written code, so in this chapter, we will review the following topics:
- Writing comments
- Understanding variables
- Using constants
- Using conditionals
- Understanding switch
- Understanding return and yield
- Understanding blocks
- Writing validations
By the end of this chapter, we will have learned to identify and use the main Bosque statements, and we will be ready to understand almost any code written in Bosque.