Data Types

Data types are different types of data. The main data types are pretty consistent across all programming languages as we can see in JSON which is used to send and receive universal structured data types.

Strings

Strings are collections of characters, spaces, punctuation and such connected together as if on a string with quotes as knots holding them on.

"SkilStak"
'Mr. Rob'
`Some ${fancy} format.`

Numbers

There are actually lots of different types of numbers in programming.

1
0.5
0
-3

Whole / Integers

Notice no decimal point.

-1
42
0

Decimal / Float

Always has a decimal point even if the numbers after the point are just 0.

0.5
-34.0
99.9999

Booleans

Named after a famous computer scientists, Booleans are just true or false, on or off, yes or no, or 1 and 0. It depends on the language.

true
false

Python is the only language I know of that capitalises these.

True
False

Other Types