Questions
There has been a lot of learning in this chapter, so use these questions as an opportunity to identify any areas that are worth revisiting. Additionally, after you have read some of the later chapters, pop back here to review your base Dart knowledge:
- Which function is used to initialize the execution of a Dart program?
- Explain the benefits that type safety, and the extension of null safety, bring to the Dart language.
- Describe the structure of a variable declaration and how to subsequently change a variable’s value.
- List some of the built-in data types that are available (hint – one of the data types is mentioned in this question!).
- What are the three main control flow loop types that Dart supports, and how would you jump out of a loop?
- Like many other programming languages, there are required and optional parameters for functions. What is the other type of parameter that is available in Dart, and how would you use it?