There are 7 primitive types:
Number(double-precision 64-bit binary format IEEE 754)
Primitive types are immutable.
We'll look at
nullwhen we cover nullability.
Symbolare less common.
We declare primitive types using... primitive values (i.e. literals).
It's also possible to instantiate the built-in types using their constructors — however, this is relatively uncommon and not idiomatic for common usage.
Standard library methods
We use standard library methods for manipulating primitives. These are available as methods on each instance.
There are library methods for casting strings to numbers and vice versa: