In a previous chapter we explored values, and decided they are just the "things" that we can access inside of our programs. But when we say "things", we really mean something like "pieces of data".
In programming, values are just the pieces of data we can access inside of our program.
"Data" is at the heart of programming, and in programming we generally have multiple different types of data (such as numbers or lists). So a data type is really just a type of data 🤷.
typeof operator (which is just "type of" condensed into a single word) that will tell us the type of any value. Let's check this operator out real quick.
$log( typeof 13 );
Let's break this down a bit. We're using
$log to print some text to our log. We're looking at
typeof 13 which looks at the value
13 is a number!