From the course: Introduction to Dart
Unlock the full course today
Join today to access over 21,500 courses taught by industry experts or purchase this course individually.
Variable declarations - Dart Tutorial
From the course: Introduction to Dart
Variable declarations
- [Instructor] Variables are used in a variety of disciplines. The most common example is the area of a circle variable in mathematics. It is typically an unknown value that must be determined. Variables are a slightly different concept in computer programming. So in order to know what variables are, we must first understand how computer memories work. Bit registers are used to store data in computer memories. Each register is assigned a unique address so that it can be retrieved or overwritten with ease. Now that you know how a computer memory works, so what exactly are variables? Then we can say that a variable is a piece of data stored in the computer's memory. The identification name we assign is linked to the memory address, and the value we save is information contained in the variable. For example, assume you want to store the values 5 and 20 in your program, and at a later stage, you want to add them together.…