public
Created

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7 8 9 10
> 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'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.