The three types we learned about in this chapter were String
, Int
, and Double
. In the subsequent chapters, we will introduce you to many more types.
Now that we have an understanding as to what a type is, in the next chapter, we will introduce you to functions. Functions can be summed up as actions that can be performed in your code. A car can turn right or left and these can be considered actions (or functions) that you perform on a car. Functions are self-contained chunks of code that you can think of as actions. We will cover what functions are and how to call them in the next chapter.