Ah ah ah ah ah ah ah ah ah ah ah ah ah ah ah ah ah ah ———–
The Number type
The number is a number, including integers and floating point numbers
Type String
String string, everything inside “, “, “, “is a string, of course, this is a bit special, if you use the ${} interpolation, then the interpolation is an expression or a variable, but, the whole “” is a string
Boolean type
Boolean, true/false
Undefined type
I don’t know how it’s defined, but I think it’s just a separate type, undefined, and it’s called undefined, no memory, no value.
Null and Object
All objects inherit from Null, so HERE I put Null and object together. I think they are both object types, but Null is a special object.
The function type
Log (typeof function(){}) prints function, call it function
Symbol type
It’s called a symbol type, but this is something I haven’t used yet, and it’s been added since ES5.