endJS

String Is Not a String?

So it turns out if you try to check if a string is an instance of a string, you are told it is not:

> 'Hello' instanceof String
false

Yet if you check the type of a string,

> typeof 'Hello'
'string'

it is indeed a string.

So intuitive!