Why does typeof return a string?