Integer

Data Types

A data type tells the program what kind of value something is and what can be done with it. Every value in a program has a type, and the type determines how the program stores and works with it.

For example, the number 42 and the text "42" look similar, but they are different types. You can add two numbers together, but adding two pieces of text just joins them into a longer string.