In computer science, data is everything. But how do we store it? Meet the Variable.
Think of a variable as a labeled box in a warehouse.
score, username).95, "Alice").Text data. Always surrounded by quotes.
"Hello World"
Whole numbers or decimals used for math.
42 or 3.14
Logic data. Only two possible values.
true or false
Identify the data type of the value shown below:
Instructions: Use the console below to declare a variable. Give it a name and a value. The system will analyze your input, determine the Data Type, and allocate it to "memory."
System Memory Visualization:
Memory is empty...