HTML and CSS Reference
When using the console, variables will not be declared with the var keyword. As
you will see below, it is critical that this is used in most situations when writing
We can then inspect the type of this variable using the typeof operator:
> typeof s
Although strings are their own data type, it is possible to invoke methods on them just as
we will see it is possible to invoke methods on objects below.
In addition, strings have properties that can be accessed, just as we will see on objects in
the examples below:
strings are immutable.