As we've gone through examples showing various aspects of Visual Studio Code and AL, we've seen and referred to variables in a number of situations. Some of the following are obvious, but for clarity's sake, we'll summarize them here.
In Chapter 3, Data Types and Fields, we reviewed various data types for variables that are defined within objects (referred to in Chapter 3, Data Types and Fields, as working storage data). Working storage consists of all of the variables that are defined for use within an object, but whose contents disappear when the object closes. Working storage data types, as discussed in Chapter 3, Data Types and Fields, are those that can be defined in either the AL global variables or AL local variables tabs. Variables can also be defined in several other places in a Business Central object.