DEV Community

Discussion on: Go channels in JS (1/5): Sending and Receiving

Collapse
 
mfbx9da4 profile image
David Alberto Adler
new String('foo') !== new String('foo')
Enter fullscreen mode Exit fullscreen mode

huh! didn't know this! Interesting so it's returning an instance of a string constructor whereas "foo" is an instance of the primitive?