Create a gist now

Instantly share code, notes, and snippets.

> typeof new String("test")
'object'
> typeof "test"
'string'
> var myString = new String("test")
> myString
{ '0': 't', '1': 'e', '2': 's', '3': 't' }
> var myOtherString = "test"
> myOtherString
'test'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment